股票市场数据服务

Finmap MCP Server 提供全球多个股票交易所的历史数据,包括公司信息、市值、交易量等,并支持数据可视化和分析。

  • by BACH-AI-Tools
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 BACH-AI-Tools/bach-finmap-mcp

使用说明

Finmap MCP服务器

finmap.org MCP服务器提供来自美国、英国、俄罗斯和土耳其证券交易所的全面历史数据。访问行业、股票代码、公司简介、市值、交易量、价值和交易计数,以及树状图和直方图可视化。

基于原项目: 此项目基于 Finmap MCP服务器 修改而来

支持的交易所

交易所 代码 国家 最早数据 更新频率
纽约证券交易所 nyse 美国 2024-12-09 每日
纳斯达克股票市场 nasdaq 美国 2024-12-09 每日
美国证券交易所 amex 美国 2024-12-09 每日
美国合并(美国证券交易所+纳斯达克+纽约证券交易所) us-all 美国 2024-12-09 每日
伦敦证券交易所 lse 英国 2025-02-07 每小时(工作日)
香港证券交易所 hkex 香港 2025-09-26 每30分钟(工作日)
伊斯坦布尔博尔萨 bist 土耳其 2015-11-30 每两个月一次
莫斯科交易所 moex 俄罗斯 2011年12月19日 每15分钟一次(工作日)

安装与使用

选项1:远程服务器(托管)

无需任何安装即可连接到我们的托管MCP服务器:

服务器URL: https://mcp.finmap.org

Claude桌面配置:

{
  "mcpServers": {
    "finmap": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.finmap.org"]
    }
  }
}

选项2:本地包(npm)

在本地安装并运行,以获得更好的性能和离线访问:

# Install globally
npm install -g finmap-mcp

# Or use directly
npx finmap-mcp

Claude桌面配置:

{
  "mcpServers": {
    "finmap": {
      "command": "npx",
      "args": ["-y", "bach-finmap-mcp"]
    }
  }
}

可用工具

1. list_exchanges

  • 标题:列表交换
  • 描述:返回支持的交换,包括ID、姓名、国家、货币、最早可用日期和更新频率。

促销示例: #finmap-mcp list available stock exchanges

示例响应:

{
  "exchanges": [
    {
      "id": "amex",
      "name": "American Stock Exchange",
      "country": "United States",
      "currency": "USD",
      "availableSince": "2024-12-09",
      "updateFrequency": "Daily"
    },
    {
      "id": "nasdaq",
      "name": "NASDAQ Stock Market",
      "country": "United States",
      "currency": "USD",
      "availableSince": "2024-12-09",
      "updateFrequency": "Daily"
    },
    {
      "id": "nyse",
      "name": "New York Stock Exchange",
      "country": "United States",
      "currency": "USD",
      "availableSince": "2024-12-09",
      "updateFrequency": "Daily"
    },
    {
      "id": "us-all",
      "name": "US Combined (AMEX + NASDAQ + NYSE)",
      "country": "United States",
      "currency": "USD",
      "availableSince": "2024-12-09",
      "updateFrequency": "Daily"
    },
    {
      "id": "lse",
      "name": "London Stock Exchange",
      "country": "United Kingdom",
      "currency": "GBP",
      "availableSince": "2025-02-07",
      "updateFrequency": "Hourly (weekdays)"
    },
    {
      "id": "moex",
      "name": "Moscow Exchange",
      "country": "Russia",
      "currency": "RUB",
      "availableSince": "2011-12-19",
      "updateFrequency": "Every 15 minutes (weekdays)"
    },
    {
      "id": "bist",
      "name": "Borsa Istanbul",
      "country": "Turkey",
      "currency": "TRY",
      "availableSince": "2015-11-30",
      "updateFrequency": "Every two months"
    },
    {
      "id": "hkex",
      "name": "Hong Kong Stock Exchange",
      "country": "Hong Kong",
      "currency": "HKD",
      "availableSince": "2025-09-26",
      "updateFrequency": "Every 30 minutes (weekdays)"
    }
  ]
}

2. list_sectors

  • 标题:列出行业
  • 说明:列出交易所在特定日期的可用业务部门,包括项目计数。

促销示例: #finmap-mcp List sectors for the Turkish stock exchange

示例响应:

{
  "date": "2024-08-28",
  "exchange": "BIST",
  "currency": "TRY",
  "sectors": [
    {
      "name": "Finance",
      "itemsPerSector": 164
    },
    {
      "name": "MSPOTECW",
      "itemsPerSector": 4669
    },
    {
      "name": "MSPOTEPW",
      "itemsPerSector": 3335
    },
    {
      "name": "Industrials",
      "itemsPerSector": 277
    },
    {
      "name": "MSPOTXCR",
      "itemsPerSector": 2
    },
    {
      "name": "Real Estate",
      "itemsPerSector": 4
    },
    {
      "name": "Agriculture",
      "itemsPerSector": 5
    },
    {
      "name": "Utilities",
      "itemsPerSector": 32
    },
    {
      "name": "MSPOTGMF",
      "itemsPerSector": 9
    },
    {
      "name": "Technology",
      "itemsPerSector": 39
    },
    {
      "name": "Basic Materials",
      "itemsPerSector": 7
    },
    {
      "name": "MSPOTEMS",
      "itemsPerSector": 1
    },
    {
      "name": "MSPOTETF",
      "itemsPerSector": 21
    },
    {
      "name": "MSPOTGSF",
      "itemsPerSector": 8
    },
    {
      "name": "Consumer Staples",
      "itemsPerSector": 27
    },
    {
      "name": "Consumer Discretionary",
      "itemsPerSector": 14
    },
    {
      "name": "Health Care",
      "itemsPerSector": 9
    },
    {
      "name": "Miscellaneous",
      "itemsPerSector": 13
    },
    {
      "name": "Telecommunications",
      "itemsPerSector": 7
    },
    {
      "name": "MSPOTEQT",
      "itemsPerSector": 4
    }
  ]
}

3. list_tickers

  • 标题:按行业列出股票代码
  • 描述:返回特定日期交易所的公司股票代码和名称,按行业分组。

促销示例: #finmap-mcp List companies in the Real Estate sector

示例响应:

{
  "date": "2024-08-28",
  "exchange": "BIST",
  "currency": "TRY",
  "sectors": {
    "Real Estate": [
      {
        "ticker": "ADESE.E",
        "name": "ADESE GAYRIMENKUL"
      },
      {
        "ticker": "IHLGM.E",
        "name": "IHLAS GAYRIMENKUL"
      },
      {
        "ticker": "RGYAS.E",
        "name": "RONESANS GAYRIMENKUL YAT."
      },
      {
        "ticker": "SONME.E",
        "name": "SONMEZ FILAMENT"
      }
    ]
  }
}

4. search_companies

  • 标题:搜索公司
  • 描述:在交易所按部分名称或股票代码查找公司,并返回最匹配的公司。

促销示例: #finmap-mcp Search for companies named 'Sprouts'

示例响应:

{
  "date": "2025-08-28",
  "exchange": "NASDAQ",
  "currency": "USD",
  "query": "Sprouts",
  "matches": [
    {
      "ticker": "SFM",
      "name": "Sprouts Farmers Market Inc. Common Stock",
      "sector": "Consumer Staples",
      "score": 70
    }
  ]
}

5. get_market_overview

  • 标题:市场概况
  • 描述:通过行业细分,获取特定日期交易所的总市值、交易量、价值和业绩。

促销示例: #finmap-mcp market overview for Nasdaq

示例响应:

{
  "date": "2025-08-28",
  "exchange": "NASDAQ",
  "currency": "USD",
  "marketTotal": {
    "name": "Market",
    "marketCap": 41238186996017,
    "marketCapChangePct": 0.6213636439596683,
    "volume": 7606048313,
    "value": 0,
    "numTrades": 0,
    "itemsPerSector": 7974
  },
  "sectors": [
    {
      "name": "Basic Materials",
      "marketCap": 248122454077,
      "marketCapChangePct": -0.19965738920998274,
      "volume": 40489423,
      "value": 0,
      "numTrades": 0,
      "itemsPerSector": 36
    },
    {
      "name": "Consumer Discretionary",
      "marketCap": 5313249666194,
      "marketCapChangePct": 0.5556221951442668,
      "volume": 1029152348,
      "value": 0,
      "numTrades": 0,
      "itemsPerSector": 580
    },
    {
      "name": "ETFS",
      "marketCap": 0,
      "marketCapChangePct": null,
      "volume": 0,
      "value": 0,
      "numTrades": 0,
      "itemsPerSector": 3976
    },
    ...
    {
      "name": "Utilities",
      "marketCap": 333109407104,
      "marketCapChangePct": -0.1881153782118469,
      "volume": 39232326,
      "value": 0,
      "numTrades": 0,
      "itemsPerSector": 48
    }
  ]
}

6. get_sectors_overview

  • 标题:行业业绩
  • 描述:获取特定日期交易所按部门汇总的性能指标。

促销示例: #finmap-mcp Get overview for the Utilities sector

示例响应:

{
  "date": "2025-08-28",
  "exchange": "NASDAQ",
  "currency": "USD",
  "sectors": [
    {
      "name": "Utilities",
      "marketCap": 333109407104,
      "marketCapChangePct": -0.1881153782118469,
      "volume": 39232326,
      "value": 0,
      "numTrades": 0,
      "itemsPerSector": 48
    }
  ]
}

7. get_stock_data

  • 标题:按股票代码排列的股票数据
  • 描述:获取特定股票在交易所和日期的详细市场数据,包括价格、变化、交易量、价值、市值和交易。

促销示例: #finmap-mcp Dominion Energy, stock data

示例响应:

{
  "exchange": "nyse",
  "country": "United States",
  "currency": "USD",
  "sector": "Utilities",
  "ticker": "D",
  "nameEng": "Dominion Energy Inc. Common Stock",
  "nameOriginal": "",
  "priceOpen": 60.34,
  "priceLastSale": 59.81,
  "priceChangePct": -0.878,
  "volume": 3771759,
  "value": 0,
  "numTrades": 0,
  "marketCap": 51043865111,
  "listedFrom": "",
  "listedTill": ""
}

8. rank_stocks

  • 标题:股票排名
  • 描述:根据特定日期的选定指标(marketCap、priceChangePct、交易量、价值、numTrades)对交易所的股票进行排名,包括订单和限额。

促销示例: #finmap-mcp UK, rank stocks by market cap

示例响应:

{
  "date": "2025-08-28",
  "exchange": "LSE",
  "currency": "GBP",
  "sortBy": "marketCap",
  "order": "desc",
  "limit": 5,
  "count": 5,
  "stocks": [
    {
      "ticker": "AZN",
      "name": "ASTRAZENECA PLC ORD SHS $0.25",
      "sector": "Health Care",
      "priceLastSale": 11810,
      "priceChangePct": -0.5557426743011115,
      "marketCap": 184159063201,
      "volume": 0,
      "value": 0,
      "numTrades": 0
    },
    {
      "ticker": "HSBA",
      "name": "HSBC HLDGS PLC ORD $0.50 (UK REG)",
      "sector": "Finance",
      "priceLastSale": 955.8,
      "priceChangePct": 0.1676797317124293,
      "marketCap": 165599631829,
      "volume": 0,
      "value": 0,
      "numTrades": 0
    },
    {
      "ticker": "SHEL",
      "name": "SHELL PLC ORD EUR0.07",
      "sector": "Energy",
      "priceLastSale": 2715.5,
      "priceChangePct": 0,
      "marketCap": 158779785181,
      "volume": 0,
      "value": 0,
      "numTrades": 0
    },
    {
      "ticker": "ULVR",
      "name": "UNILEVER PLC ORD 3 1/9P",
      "sector": "Consumer Staples",
      "priceLastSale": 4610,
      "priceChangePct": -0.2812026822409691,
      "marketCap": 113348756395,
      "volume": 0,
      "value": 0,
      "numTrades": 0
    },
    {
      "ticker": "BHP",
      "name": "BHP GROUP LIMITED ORD NPV (DI)",
      "sector": "Basic Materials",
      "priceLastSale": 2073,
      "priceChangePct": 0.6310679611650485,
      "marketCap": 104611160052,
      "volume": 0,
      "value": 0,
      "numTrades": 0
    }
  ]
}

9. get_company_profile

  • 标题:公司简介(美国)
  • 描述:通过股票代码获取一家美国上市公司的业务描述、行业和背景。

促销示例: #finmap-mcp Sprouts Farmers Market, get company profile

示例响应:

{
  "data": {
    "ModuleTitle": {
      "label": "Module Title",
      "value": "Company Description"
    },
    "CompanyName": {
      "label": "Company Name",
      "value": "Sprouts Farmers Market, Inc."
    },
    "Symbol": {
      "label": "Symbol",
      "value": "SFM"
    },
    "Address": {
      "label": "Address",
      "value": "5455 EAST HIGH STREET,SUITE 111, PHOENIX, Arizona, 85054, United States"
    },
    "Phone": {
      "label": "Phone",
      "value": "+1 480 814-8016"
    },
    "Industry": {
      "label": "Industry",
      "value": "Food Chains"
    },
    "Sector": {
      "label": "Sector",
      "value": "Consumer Staples"
    },
    "Region": {
      "label": "Region",
      "value": "North America"
    },
    "CompanyDescription": {
      "label": "Company Description",
      "value": "Sprouts Farmers Market is an American specialty grocer offering an assortment highlighting fresh and naturally derived products. Its offerings   are especially focused on produce, which constituted around 21% of sales in fiscal 2021. Founded in 2002, the chain is most heavily concentrated in   California, which accounted for over one third of its 374 stores as of the end of fiscal 2021. All of the company's operations are in the United States,   with its stores largely located in the southern half of the country. The firm sells roughly 20,000 products (of which around 70% are attribute driven,   such as organic, plant-based, or catering to the keto or paleo diet), with private-label products accounting for about 16% of sales in fiscal 2021.   Perishable items accounted for 58% of fiscal 2021 sales."
    },
    "CompanyUrl": {
      "label": "Company Url",
      "value": "https://www.sprouts.com"
    },
    "KeyExecutives": {
      "label": "Key Executives",
      "value": [
        {
          "name": "Jack Loudon Sinclair",
          "title": "Chief Executive Officer & Director"
        },
        {
          "name": "James Bahrenburg",
          "title": "Chief Technology Officer"
        },
        {
          "name": "Nicholas Konat",
          "title": "President & Chief Operating Officer"
        }
      ]
    }
  },
  "message": null,
  "status": {
    "rCode": 200,
    "bCodeMessage": null,
    "developerMessage": null
  }
}

数据提供者

数据来源于 finmap.org -一个用于金融市场可视化和分析的交互式平台。

  • 网站: https://finmap.org
  • GitHub: https://github.com/finmap-org
  • 捐赠: Patreon | Boosty