
Sedis Ab
io.github.sedis-ab由 GitHub 账号 sedis-ab 发布v1.2.1更新于 Oct 24, 2026
Read-only MCP tools for the Sedis PartnerAPI v2 (Bolagsanalys + Fastighetsbenchmark).
概览
本地运行、只读的 MCP 服务器,让助手查询 Sedis PartnerAPI v2 的上市公司财务数据与房地产基准数据。
- 可以做什么
- 搜索上市公司并查找财务参数,再按单家公司、最多 50 家的批量或某参数某季度的全部公司获取季度数据(Bolagsanalys)。查找房地产基准参数,并按名称、市镇、区域或物业类型定位你的物业单元。列出你的集合、比较区域以及 Sedis 共享的参考区域。获取 CompDatum 基准时间序列,并查询市镇与物业类型 ID 用于筛选。为用户自有密钥设置或清除会话令牌,并可要求以瑞典语返回名称和描述。
- 适用场景
- 当你拥有 Sedis PartnerAPI 访问权限,并希望用自然语言询问上市公司财务或房地产可比数据时适用,例如获取某公司的季度关键指标,或将你的物业单元与基准区域对比。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 启动,因此需要 Node.js(Claude Desktop 扩展已内置)。需要在 SEDIS_API_KEY 中提供 Sedis PartnerAPI v2 密钥,没有免费版或试用。可选 SEDIS_API_BASE_URL 覆盖基础地址,SEDIS_API_SESSION 可预置会话令牌。用户自有密钥还需通过双因素认证定期刷新短期会话令牌。需要能访问 Sedis API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Sedis Ab,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@sedis/mcp
[CI] [npm version] [License: MIT] [Node.js >= 20]
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: [email protected] · 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:
Add it to your client's MCP config and set your PartnerAPI 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
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:
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)
Fastighetsbenchmark (real-estate comparables)
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)
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.
来源:README.md,提交 dd76654
工具
0版本历史
2- v1.2.1最新Oct 20, 2026
- v1.1.6Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分