IBEX 35 MCP 服务器基于 模型上下文协议(MCP),让 Claude 等大语言模型能够全面获取西班牙 IBEX 35 股票市场数据、公司治理信息和财务分析数据。
选项 1:使用 NPM 全局安装(推荐)
npm install -g ibex35-mcp-server
选项 2:从源代码安装
git clone https://github.com/anbrme/ibex35-mcp-server.git
cd ibex35-mcp-server
npm install
npm run build
IBEX35_API_URL:Cloudflare Worker API 的 URL(默认为 https://ibex35-api.ncdata.eu)IBEX35_API_KEY:可选的 API 密钥,用于身份验证(如果你的 Worker 需要)该服务器连接到现有的 Cloudflare Worker,该 Worker 提供对 D1 数据库的 API 访问,无需进行本地数据库设置。
npm start
将以下内容添加到 claude_desktop_config.json 文件中:
如果使用 NPM 安装:
{
"mcpServers": {
"ibex35-database": {
"command": "ibex35-mcp",
"env": {
"IBEX35_API_URL": "https://ibex35-api.ncdata.eu"
}
}
}
}
如果从源代码安装:
{
"mcpServers": {
"ibex35-database": {
"command": "node",
"args": ["/path/to/ibex35-mcp-server/dist/index.js"],
"env": {
"IBEX35_API_URL": "https://ibex35-api.ncdata.eu"
}
}
}
}
配置文件位置:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonget_all_companies - 列出所有 IBEX 35 公司的当前数据。get_company_by_symbol - 根据股票代码获取详细的公司信息。get_companies_by_sector - 按行业筛选公司。get_companies_with_pe_ratio - 按市盈率范围筛选公司。get_company_directors - 获取公司的董事会成员信息。get_board_interlocks - 查找在多个董事会任职的董事。get_directors_by_name - 在所有公司中搜索特定姓名的董事。get_company_shareholders - 获取公司的股东结构信息。get_shareholder_overlap - 查找在多家公司持有股份的股东。get_top_shareholders_by_sector - 按行业查找顶级股东。get_historical_prices - 获取历史 OHLCV 数据。get_top_performers - 查找特定时间段内表现最佳或最差的公司。get_recent_news - 获取最新的新闻文章,并附带情绪分析。get_news_by_sentiment - 按情绪(积极/消极/中性)筛选新闻。get_lobbying_meetings - 获取欧盟的游说会议和活动信息。get_most_active_lobbyists - 查找游说活动最活跃的组织。get_network_analysis - 对治理关系进行全面的网络分析。get_sector_correlation_analysis - 分析行业表现的相关性。analyze_natural_query - 通过智能路由处理复杂的自然语言查询。compare_companies - 对公司进行多维度(财务、治理、业绩)比较。analyze_trends - 进行高级趋势分析和预测(公司、行业、市场、相关性)。assess_investment_risk - 全面评估投资风险(市场、治理、行业、流动性、集中度)。generate_analyst_report - 生成专业的分析师报告(公司深度分析、行业概述、治理分析)。screen_opportunities - 根据自定义标准和评分筛选投资机会。get_weekly_reports - 获取生成的每周市场和治理报告。get_esg_scores - 获取 ESG 评分和可持续发展指标。execute_custom_query - 执行自定义 SQL 查询(仅支持 SELECT 语句)。"Show me all directors who serve on multiple IBEX 35 boards"
"Which directors have political backgrounds or government connections?"
"Find potential conflicts of interest in IBEX 35 corporate governance"
"Who are the most connected directors in the Spanish corporate network?"
"What are the largest IBEX 35 companies by market capitalization?"
"Show me companies with P/E ratios below 15"
"Which energy sector companies are in IBEX 35?"
"Compare the performance of banking vs telecommunications stocks"
"Find institutional investors with holdings in multiple IBEX 35 companies"
"Show me the ownership structure of Banco Santander"
"Which companies have the most concentrated ownership?"
"Identify shareholder overlaps in the energy sector"
"What are the best performing IBEX 35 stocks this month?"
"Show me companies that have dropped more than 10% recently"
"Compare sector performance across IBEX 35"
"Find undervalued companies based on P/E ratios"
"Analyze the political connections within IBEX 35 boards"
"Show me recent news sentiment for renewable energy companies"
"Which companies have the most diverse boards?"
"Find companies with suspicious governance patterns"
"Which banking stocks have grown most in the last month?"
"Show me companies with high governance risk and explain why"
"Compare Santander vs BBVA across all metrics"
"Find undervalued large-cap companies with good governance scores"
"Generate a comprehensive report on the energy sector outlook"
"What are the price trends for telecommunications stocks?"
"Assess the investment risks of the banking sector"
"Screen for opportunities: P/E under 15, market cap over 10B, exclude energy"
该服务器使用的综合数据库架构包括:
# 开发模式,支持自动重新加载
npm run dev
# 编译 TypeScript
npm run build
# 启动生产服务器
npm start
此 MCP 服务器旨在与 IBEX 35 仪表盘生态系统配合使用。请确保任何更改都能与现有数据库架构和同步流程保持兼容。
该 MCP 服务器从以下权威西班牙数据源聚合数据:
# 检查 Node.js 版本
node --version
# 如有需要,清除 NPM 缓存
npm cache clean --force
# 重新安装
npm install -g ibex35-mcp-server
该服务器使用公共 API,无需身份验证。如果遇到错误,请执行以下命令测试 API 可达性:
curl https://ibex35-api.ncdata.eu/api/companies
本项目采用 MIT 许可证,可用于商业和非商业用途。
为 Claude 和 MCP 社区精心打造 ❤️
为全球的 AI 助手提供西班牙企业情报支持