@sedis/mcp
An MCP server that provides read-only access to Sedis Bolagsanalys and Fastighetsbenchmark data via natural language, enabling AI assistants to query Swedish listed-company financials and real-estate comparables.
README
@sedis/mcp
A Model Context Protocol (MCP) server that wraps the Sedis PartnerAPI v2 as a small set of curated, read-only tools, so AI assistants and agents (Claude Desktop, Cursor, and any MCP-capable client) can query your Sedis Bolagsanalys (listed-company financials) and Fastighetsbenchmark (real-estate comparables) data in natural language. The server is a thin pass-through: it adds shape and transport only — every tenant-isolation, authentication, rate-limit, and billing rule lives in PartnerAPI v2, not here.
Not a Sedis customer yet? This server requires a Sedis PartnerAPI v2 key — there is no free tier or trial. Get in touch: info@sedis.se · Fråga Sedis
Install
Easiest: one-click Claude Desktop bundle (.mcpb) — recommended
For non-technical users, install the Desktop Extension — a single file, no Node, no JSON, no terminal:
- Download
sedis-mcp.mcpbfrom the latest release. - Double-click it (or open Claude Desktop → Settings → Extensions and drag it in) and click Install.
- Paste your Sedis API key into the field that appears (stored in your OS keychain) and confirm.
- Done — start a chat and ask, e.g. "Visa nyckeltal för Fabege" (
lang: "sv"for Swedish).
The bundle packages the exact server described below together with its dependencies; Claude Desktop supplies the Node runtime, so the user installs nothing else. Ask your Sedis administrator for a key — a customer-level (M2M) key needs no per-session two-factor step. Maintainers build the bundle with
npm run build:mcpb(output:dist/sedis-mcp.mcpb).
Manual config (any MCP client — Claude Code, Cursor, …)
The server runs over stdio and is launched on demand via npx — no global
install needed. The canonical launch command is:
npx -y @sedis/mcp
Add it to your client's MCP config and set your PartnerAPI key:
{
"mcpServers": {
"sedis": {
"command": "npx",
"args": ["-y", "@sedis/mcp"],
"env": {
"SEDIS_API_KEY": "your-partnerapi-v2-key"
}
}
}
}
- Claude Desktop: add the block above to
claude_desktop_config.json. - Cursor / other clients: add it to the client's
mcp.json(same shape).
Configuration
| Env var | Required | Default | Purpose |
|---|---|---|---|
SEDIS_API_KEY |
yes | — | Your PartnerAPI v2 key. Sent only as the X-Api-Key header; never logged. |
SEDIS_API_BASE_URL |
no | https://api.sedis.se |
Override the v2 base URL (e.g. for an alpha/beta environment). |
SEDIS_API_SESSION |
no | — | Optional startup seed for the session token (user-owned keys only). Sent as X-Api-Session; never logged. Usually you set this at runtime with the set_session tool instead — no restart needed. |
The key is validated lazily — the server starts without it and returns a friendly, actionable error on the first tool call if it is missing or invalid. There is no startup ping.
Tools not showing up? MCP servers are loaded when your client starts — after editing the config, fully restart/reload the client (a new chat in the same window is not enough). If you registered it via a CLI (
claude mcp add), make sure it landed in the right scope: a server added in one directory isn't visible in another project unless you use a global/user scope.
Session tokens (user-owned keys)
If your key is owned by a specific user (issued to a named person, not a
machine/M2M integration key), PartnerAPI v2 requires a short-lived session
token alongside X-Api-Key, refreshed periodically via two-factor auth:
- On a
401with reasonsession_expired/session_invalid, the tool error carries areproveUrl. Open it in a browser, complete 2FA, and copy the freshly-mintedsedis_sess_…token. - Paste it with the
set_sessiontool — it is carried asX-Api-Sessionon the very next call, no client restart needed. Useclear_sessionto sign out. - Optionally seed a token at startup with the
SEDIS_API_SESSIONenv var (handy for CI / power users); at runtimeset_sessionalways takes precedence.
Machine / org-wide keys (no owner) are headless — X-Api-Key only, no
session token, and you never call set_session.
Local development / testing against a non-production environment
To run a local build (unpublished) or point at a non-production environment, swap npx
for the built entrypoint and override the base URL:
{
"mcpServers": {
"sedis-local": {
"command": "node",
"args": ["/absolute/path/to/sedis-mcp/build/index.js"],
"env": {
"SEDIS_API_KEY": "your-non-production-key",
"SEDIS_API_BASE_URL": "https://<your-non-production-host>"
}
}
}
}
Ask the Sedis team for the host name — non-production environments are not publicly
documented. This is a development convenience only; production users just use the
npx -y @sedis/mcp block above with a single SEDIS_API_KEY, which defaults to
https://api.sedis.se.
Tools
All tools are read-only. Tenant scope is enforced by v2: the "YOUR …" tools only ever return data your key is entitled to, and a request for another tenant's object comes back as a friendly not found (never a 403 that would leak existence).
Bolagsanalys (listed-company financials)
| Tool | What it does |
|---|---|
bolagsanalys_list_companies |
Search the catalog of listed companies by name fragment. |
bolagsanalys_find_parameter |
Discover the right financial parameter by name fragment. |
bolagsanalys_get_data |
Fetch quarterly figures. Pass one companyId, or omit it to get all companies for a parameter/quarter. |
bolagsanalys_search_data |
Batch-fetch figures for a specific set of companies — companyIds[] (max 50). |
Fastighetsbenchmark (real-estate comparables)
| Tool | What it does |
|---|---|
fastighetsbenchmark_find_parameter |
Discover the right real-estate benchmark parameter by name. |
fastighetsbenchmark_search_property_units |
Find YOUR property units (Fastighet) by name, municipality, zone, or property-type name (propertyTypeName, e.g. "Office"/"Kontor"). |
fastighetsbenchmark_list_samlingar |
List YOUR collections (Samling) and their members. |
fastighetsbenchmark_list_jamforelseobjekt |
List YOUR comparison zones (Jämförelseobjekt). |
fastighetsbenchmark_get_comp_timeseries |
Pull the actual CompDatum benchmarking time-series (self-describing values). |
fastighetsbenchmark_list_reference_zones |
List the shared, Sedis-owned market reference zones (same for every key). |
Names and descriptions are English by default; pass lang: "sv" on the
parameter-discovery and property-unit tools to get Swedish.
Session (user-owned keys)
| Tool | What it does |
|---|---|
set_session |
Paste a freshly-minted sedis_sess_… token (from the reprove page) — carried as X-Api-Session on the next call, no restart. |
clear_session |
Forget the current session token (sign out). |
These are needed only for user-owned keys (see Session tokens above); machine / org-wide keys never use them.
Errors are mapped from PartnerAPI v2's RFC 7807 problem responses into short,
friendly tool errors that carry a traceId for support — and never the API key
or a stack trace. If a tool reports a session / two-factor re-verification
error, open the reproveUrl in the message, complete 2FA, copy the new
sedis_sess_… token, and paste it via the set_session tool — then retry
(no client restart). See Session tokens (user-owned keys) above.
API reference
This server is a wrapper. The underlying endpoints, query conventions,
multi-tenant isolation model, geometry, error shapes, rate limits, and data
freshness are documented in the PartnerAPI v2 guide that Sedis provides with
your API key — contact Sedis if you need access. The live OpenAPI description is
served at <SEDIS_API_BASE_URL>/openapi/v2.json (default
https://api.sedis.se/openapi/v2.json).
This README does not duplicate that reference.
Data use
Use of Sedis data in AI/LLM contexts is subject to your Sedis agreement and the accompanying MCP data-use terms. See SECURITY.md for the key-handling and supply-chain posture.
Licence
MIT.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。