borsdata-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@borsdata-mcp-server show me the current P/E ratio for Volvo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Borsdata MCP Server
MCP (Model Context Protocol) server that exposes the Borsdata financial data API as tools and resources for Claude. Covers Nordic and Global stocks, financial reports, KPIs, stock prices, holdings, and calendars.
Quick Start
Prerequisites
Node.js 18+
A Borsdata API key (requires Pro membership — apply via Borsdata MyPage)
Add to Claude Code
Run this from your project directory:
claude mcp add borsdata -- npx borsdata-mcp-serverThen set the API key as an environment variable. You can either:
Add to your shell profile (
.bashrc,.zshrc, etc.):export BORSDATA_API_KEY=your-api-key-hereOr configure it in
.mcp.json(project-level) manually:{ "mcpServers": { "borsdata": { "command": "npx", "args": ["borsdata-mcp-server"], "env": { "BORSDATA_API_KEY": "your-api-key-here" } } } }
Add to Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"borsdata": {
"command": "npx",
"args": ["borsdata-mcp-server"],
"env": {
"BORSDATA_API_KEY": "your-api-key-here"
}
}
}
}Alternative: Install globally
npm install -g borsdata-mcp-serverThen use "command": "borsdata-mcp-server" instead of npx borsdata-mcp-server in your config.
Alternative: Install from source
git clone https://github.com/carlwestman/borsdata-mcp-server.git
cd borsdata-mcp-server
npm install
npm run buildThen point your config at the built output (use the full path to where you cloned it):
{
"mcpServers": {
"borsdata": {
"command": "node",
"args": ["<path-to-cloned-repo>/dist/index.js"],
"env": {
"BORSDATA_API_KEY": "your-api-key-here"
}
}
}
}For example, if you cloned to ~/projects/borsdata-mcp-server, the args would be ["~/projects/borsdata-mcp-server/dist/index.js"].
Related MCP server: mcp-finnhub
Using with Claude — CLAUDE.md Snippet
For best results, add the Borsdata context to your project's CLAUDE.md so Claude knows how to use the tools effectively. Copy the contents of CLAUDE_MD_SNIPPET.md into your project's CLAUDE.md:
cat node_modules/borsdata-mcp-server/CLAUDE_MD_SNIPPET.md >> CLAUDE.mdOr copy it from the GitHub repo directly. This gives Claude the workflow, tool reference, parameter guide, and common KPI IDs it needs to use the server efficiently.
Tools (22 total)
Instruments
Tool | Description |
| Search Nordic instruments by name or ticker. Start here — you need the |
| List all Nordic instruments. Optional filters: instrument type, market, sector, country. |
| List all Global instruments. Requires Pro+. |
| Get Swedish/English company descriptions for up to 50 instruments. |
Stock Prices
Tool | Description |
| Historical end-of-day prices for one instrument. Up to 20 years. Supports date range and max count. |
| Historical prices for up to 50 instruments in one call. |
| Latest price for all Nordic instruments. |
| All Nordic prices for a specific date. |
Financial Reports
Tool | Description |
| Income statement, balance sheet, and cash flow for one instrument. Choose report type: |
| All report types (year + r12 + quarter) for one instrument. |
| All report types for up to 50 instruments. |
KPI Screener (latest values)
Tool | Description |
| One KPI value for one instrument (e.g., P/E ratio for Ericsson). |
| One KPI value for ALL Nordic instruments (useful for screening). |
| When KPIs were last recalculated. |
KPI History
Tool | Description |
| Historical KPI values for one instrument over time. |
| Historical KPI values for up to 50 instruments. |
| Summary of all available KPIs for one instrument. |
Holdings (Pro+ only)
Tool | Description |
| Insider trading activity (past 10 years) for up to 50 instruments. |
| Short selling positions for all Nordic instruments. |
| Share buyback data for up to 50 instruments. |
Calendar
Tool | Description |
| Upcoming report release dates for up to 50 instruments. |
| Dividend dates and amounts for up to 50 instruments. |
Reference Data
Tool | Description |
| All industry branches (sub-categories of sectors). |
| All Nordic countries. |
| All stock exchanges/markets. |
| All sectors. |
Other
Tool | Description |
| Stock splits for Nordic instruments within the last year. |
MCP Resources (Knowledge Base)
The server exposes 3 MCP resources that agents can read to understand the API's opaque IDs and parameters. These are the key to making the tools usable — without them, an agent wouldn't know that "P/E ratio" maps to kpiId=2.
1. borsdata://guide/api-overview — API Guide
A comprehensive reference document that agents read first. Contains:
Typical workflow: search for instrument by name → get insId → use insId with other tools
Data tiers: what's available in Nordic Pro vs Global Pro+
Rate limits: 100 calls/10 seconds, 10,000/day recommended max
Instrument types: full ID-to-name mapping (0=Stocks, 1=Preference Stocks, 2=Nordic Index, etc.)
Report types:
yearvsr12(rolling 12 months) vsquarter, max counts, currency flagKPI parameters:
calcGroup:1year,3year,5year,7year,10year,15year,lastcalc:high,low,mean,cagr,latestreportType:year,r12,quarterpriceType:low,mean,high
Common KPI IDs: P/E=2, P/S=3, P/B=4, Dividend Yield=1, EPS=6, ROE=34, ROA=35
Report periods: 1=Q1, 2=Q2, 3=Q3, 4=Q4, 5=Full Year
2. borsdata://reference/kpi-metadata — KPI Lookup Table
Dynamic resource — fetched from the Borsdata API on first access, then cached. Returns a markdown table of ALL available KPI IDs:
| kpiId | English Name | Swedish Name | Format | IsString |
|-------|-------------|-------------|--------|----------|
| 1 | Dividend Yield | Direktavkastning | percentage | false |
| 2 | P/E | P/E | number | false |
| 3 | P/S | P/S | number | false |
| 4 | P/B | P/B | number | false |
| 5 | Revenue Per Share | Omsättning/aktie | number | false |
| 6 | Earnings Per Share | Vinst/aktie | number | false |
| ... | ... | ... | ... | ... |This is the single most important resource. It lets agents translate human-readable KPI names (like "Return on Equity") into the numeric kpiId needed by get_kpi, get_kpi_all, and get_kpi_history.
3. borsdata://reference/report-fields — Report Field Metadata
Dynamic resource — fetched from the Borsdata API on first access, then cached. Returns a markdown table explaining what each field in a financial report means:
| Field Name | English Name | Swedish Name | Format |
|------------------------|--------------------------|----------------------|---------|
| revenues | Revenues | Omsättning | number |
| gross_Income | Gross Income | Bruttoresultat | number |
| operating_Income | Operating Income | Rörelseresultat | number |
| profit_Before_Tax | Profit Before Tax | Resultat före skatt | number |
| earnings_Per_Share | Earnings Per Share | Vinst per aktie | number |
| total_Assets | Total Assets | Totala tillgångar | number |
| free_Cash_Flow | Free Cash Flow | Fritt kassaflöde | number |
| ... | ... | ... | ... |Agents use this to understand the 40+ fields returned by get_reports, get_all_reports, and get_reports_batch.
API Reference
This server wraps the Borsdata API v1. Additional documentation:
Rate Limits
100 calls per 10 seconds (enforced by the server's built-in rate limiter)
Recommended daily maximum: 10,000 calls
Data updates daily after ~20:00 UTC (end-of-day only, no intraday)
Data Tiers
Feature | Nordic Pro | Global Pro+ |
Nordic instruments | Yes | Yes |
Global instruments | No | Yes |
Stock prices (20yr) | Yes | Yes |
Financial reports | Yes | Yes |
KPIs | Yes | Yes |
Calendars | Yes | Yes |
Insider holdings | No | Yes |
Short positions | No | Yes |
Buybacks | No | Yes |
Development (from source)
git clone https://github.com/carlwestman/borsdata-mcp-server.git
cd borsdata-mcp-server
npm install
npm run dev # Run with tsx (auto-compiles TypeScript)
npm run build # Compile to dist/
npm start # Run compiled output
npm test # Run tests (vitest)
npm run lint # Lint with eslintProject Structure
src/
index.ts # Entry point — McpServer + StdioServerTransport
api/
client.ts # BorsdataClient HTTP wrapper
rate-limiter.ts # Sliding window rate limiter
types.ts # TypeScript interfaces for API responses
tools/ # Tool registration (one file per domain)
resources/ # MCP Resources (knowledge base)
utils/
errors.ts # Structured error handlingLicense
ISC
Available Tools
30 toolsget_all_reportsA
Get all report types (year, r12, quarter) for one instrument in a single call.
Inputs: insId (required), original, maxR12QCount, maxYearCount.
get_buybacksA
Get share buyback data for up to 50 Nordic instruments. Requires Pro+ subscription.
Inputs: instList (required).
get_dividend_calendarB
Get dividend dates and amounts for up to 50 instruments.
Inputs: instList (required).
get_insider_holdingsA
Get insider trading holdings for up to 50 Nordic instruments. Requires Pro+ subscription. Shows buyer/seller activity from the past 10 years.
Inputs: instList (required).
get_instrument_descriptionsA
Get Swedish and English descriptions for up to 50 instruments.
Inputs: instList (required).
get_kpiA
Get a specific KPI value for one instrument. Read the 'borsdata://reference/kpi-metadata' resource to look up kpiId numbers. Read 'borsdata://guide/api-overview' for calcGroup and calc parameter explanations.
Inputs: calc (required), insId (required), kpiId (required), calcGroup (required).
get_kpi_allA
Get a specific KPI value for ALL instruments (Nordic + Global with Pro+). Useful for screening and comparing across the market. Returns thousands of instruments — consider filtering results client-side.
Inputs: calc (required), kpiId (required), calcGroup (required).
get_kpi_historyA
Get historical KPI values for one instrument. Not all screener KPIs have history — only a subset. Read 'borsdata://reference/kpi-metadata' for available KPI IDs.
Inputs: insId (required), kpiId (required), priceType (required), reportType (required), +1 more.
get_kpi_history_batchA
Get historical KPI values for multiple instruments (max 50) in one call.
Inputs: kpiId (required), instList (required), priceType (required), reportType (required), +1 more.
get_kpi_summaryA
Get a summary of all available KPI values for one instrument and report type.
Inputs: insId (required), reportType (required), maxCount.
get_kpi_updatedA
Get the datetime of the last KPI calculation. Useful to know when data was last refreshed.
Inputs: no named parameters.
get_latest_pricesA
Get the latest stock price for all Nordic instruments. For global instruments, use get_latest_prices_global (Pro+).
Inputs: no named parameters.
get_latest_prices_globalA
Get the latest stock price for all Global instruments. Requires Pro+ subscription.
Inputs: no named parameters.
get_prices_by_dateA
Get stock prices for all Nordic instruments on a specific date. For global instruments, use get_prices_by_date_global (Pro+).
Inputs: date.
get_prices_by_date_globalA
Get stock prices for all Global instruments on a specific date. Requires Pro+ subscription.
Inputs: date.
get_report_calendarB
Get upcoming report release dates for up to 50 instruments.
Inputs: instList (required).
get_reportsA
Get financial reports (income statement, balance sheet, cash flow) for one instrument by report type. Read the 'borsdata://reference/report-fields' resource to understand field names.
Inputs: insId (required), reportType (required), maxCount, original.
get_reports_batchA
Get all report types for multiple instruments (max 50) in one call.
Inputs: instList (required), original, maxR12QCount, maxYearCount.
get_short_positionsA
Get short selling positions for all Nordic instruments. Requires Pro+ subscription. Returns a large response (~170KB+). Short selling data is based on Nordic regulatory reporting.
Inputs: no named parameters.
get_stock_pricesA
Get historical end-of-day stock prices for one instrument. Up to 20 years of data. Returns date, open, high, low, close, volume. Use from/to date filters to limit the response size — without filters this returns the full history which can be very large.
Inputs: insId (required), to, from.
get_stock_prices_batchA
Get historical stock prices for multiple instruments (max 50) in one call.
Inputs: instList (required), to, from.
get_stock_splitsA
Get stock splits for Nordic instruments within the last year.
Inputs: from.
list_branchesA
List all industry branches. Each branch belongs to a sector. Use branch IDs to filter instruments.
Inputs: no named parameters.
list_countriesA
List all Nordic countries. Use country IDs to filter instruments.
Inputs: no named parameters.
list_global_instrumentsB
List all Global instruments. Requires Pro+ subscription.
Inputs: no named parameters.
list_instrumentsA
List all Nordic instruments. Optionally filter by instrument type, market, sector, or country. Returns full instrument details.
Inputs: marketId, sectorId, countryId, instrumentType.
list_marketsA
List all stock markets (exchanges). Use market IDs to filter instruments.
Inputs: no named parameters.
list_sectorsA
List all sectors. Use sector IDs to filter instruments.
Inputs: no named parameters.
search_global_instrumentsA
Search for Global instruments by name or ticker. Requires Pro+ subscription. Use this to find global companies like Apple, Microsoft, etc. Returns matching instruments with their IDs.
Inputs: query (required), maxResults.
search_instrumentsA
Search for Nordic instruments by name or ticker. Returns matching instruments with their IDs. Use this first to find the insId needed for other tools. For global instruments (e.g. Apple, Microsoft), use search_global_instruments instead.
Inputs: query (required), maxResults.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools have clearly distinct purposes, but some overlap exists between similar operations such as get_reports vs get_all_reports, get_latest_prices vs get_prices_by_date, and the various KPI tools. Descriptions clarify these boundaries, preventing serious confusion.
The naming pattern is predominantly verb_noun with get_, search_, and list_ prefixes, which is consistent. Minor inconsistencies exist, such as 'all' meaning different things in get_all_reports vs get_kpi_all, and the mix of get_prices_by_date vs get_stock_prices.
With 30 tools, the server is on the heavier side, but the broad scope of a financial data API covering instruments, prices, reports, KPIs, corporate actions, and reference data justifies the count. It's borderline between 'slightly over' and 'too many' for the domain.
The tool surface covers the core functionality of the Borsdata API well: instrument discovery, price history, reports, KPIs, corporate actions, and calendars. Minor gaps exist, such as lack of global stock splits or more granular corporate action tools, but agents can work around these.
Maintenance
Related MCP Connectors
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
MCP server for Financial Modeling Prep API with 250+ financial data tools
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server exposing Massive.com's REST Stocks API for querying stock market data via Claude Desktop/Code.31MIT
- AlicenseBqualityCmaintenanceMCP server providing comprehensive access to Finnhub financial market data API for AI assistants like Claude Desktop.1523 PyPI11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for stock prices, historical data, FX rates, and ticker search, powered by yfinance with no API key required. Designed for Claude Desktop.1Apache 2.0

siftingio-mcpofficial
AlicenseAqualityCmaintenanceMCP server that provides access to SiftingIO market data, including live prices, SEC filings, OHLCV bars, 13F holdings, market status, and economic calendar tools for AI assistants.3636 npm1MIT