sanctions.io MCP by usefulapi
Screen names against sanctions, PEP and watchlists; list screening sources in sanctions.io.
Description from the maker (original English)
上海图书馆开放数据检索 MCP:纪年/家谱/建筑/红色事件/99 个 webapi + 搜韵诗词,支持 stdio 与 HTTP。
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"shanghai-library-open-data": {
"command": "uvx",
"args": [
"shanghai-library-open-data-mcp"
]
}
}
}Run this in your terminal
claude mcp add shanghai-library-open-data -- uvx shanghai-library-open-data-mcpPaste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"shanghai-library-open-data": {
"command": "uvx",
"args": [
"shanghai-library-open-data-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"shanghai-library-open-data": {
"type": "stdio",
"command": "uvx",
"args": [
"shanghai-library-open-data-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026
The registry name was verified with the GitHub account FreyaBit, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (1.3.2) reached the registry 3 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: sanctions.io MCP by usefulapi, Worldbank MCP, Uk Parliament MCP
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Screen names against sanctions, PEP and watchlists; list screening sources in sanctions.io.
World Bank Open Data: indicator catalogue sea MCP: real tools for real work.
UK Parliament open data: find MPs and Lords, read member profiles, and search bills with their
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
把上海图书馆开放数据平台的 99 个 webapi 接口 + 搜韵诗词库(199 万首,免 token)封装成 12 个 MCP 工具,可接入 WorkBuddy、Cursor、Claude Desktop 等任意 MCP 客户端。
这是啥? 一个把「上海图书馆开放数据」接进 AI 助手的桥。装好之后,你直接在 AI 工具里说"查武康路的历史建筑""找首写月亮的诗",AI 就会自动去上海图书馆的数据里查,再把结果讲给你听——不用懂接口、不用写代码。
你要准备什么? 两样:① 去上海图书馆开放数据平台免费注册,拿一把"钥匙"(APIKey);② 按下面的「快速开始」把项目接进你常用的 AI 编辑器(Cursor、Claude Desktop、VS Code、WorkBuddy 等都能用)。
为什么安全? 项目代码里不含任何钥匙,钥匙只在你自己的电脑 / 配置里,不会被别人看到。
io.github.FreyaBit/shanghai-library-open-data-mcp)、Smithery、ModelScope 与 GitHub,便于各 MCP 客户端一键接入。SLC_API_KEY 或工具参数 key 传入,代码不内置任何密钥pip installsouyun_poem 免 token 检索 199 万首诗词(按作者/标题/诗句/朝代/体裁/韵部),souyun_rhyme / souyun_couplet 提供韵典和对仗词汇rag_kb.py 纯标准库 TF-IDF 知识库,可离线灌入官方 ZIP 数据| 工具 | 说明 | 需要 Key |
|---|---|---|
slc_endpoints | 列出全部 99 个接口(id/家族/路径/参数),发现能力 | ❌ |
slc_api | 通用分发器:调用任意 webapi 接口 | ✅ |
slc_era | 中国历史纪年表:朝代/年号 ↔ 公元年 | ✅ |
slc_jiapu | 家谱谱目检索 | ✅ |
slc_building | 武康路历史建筑检索 | ✅ |
slc_red_event | 红色旅游/历史事件检索 | ✅ |
slc_raw | 任意 data1 路径 GET 兜底调用 | ✅ |
slc_datasets / slc_sparql | 数据集总览 / SPARQL 说明 | ❌ |
souyun_poem | 搜韵诗词检索(199 万首,免 token) | ❌ |
souyun_rhyme | 韵典:查字所属韵部、典故、诗例 | ❌ |
souyun_couplet | 对仗词汇 | ❌ |
接口家族:近代城市文化(20)、古籍循证(15)、国漫革命文献(7)、武康路历史(7)、纪年表关联数据(5)、韬奋纪念馆(4)、书目数据(4)、家谱(4)、地名纪年(4)、竞赛PDF文献(3)、知识图谱人物(2)、文化总库机构(2)、舆图(2)、手迹(2)、红色旅游事件(2)、地名志(2)、纪年(2)、人名规范库(1)、机构名录(1)、戏单(2)、其他(8)。
# 1. 克隆仓库
git clone https://github.com/FreyaBit/OpenSH-mcp.git cd OpenSH-mcp
export SLC_API_KEY='你的上图书APIKey' # macOS/Linux
python3 tests/test_stdio.py
在你的 MCP 客户端里配置 stdio 服务:
{
"mcpServers": { "上海图书馆开放数据": { "command": "python3", "args": ["/绝对路径/slc_mcp_server.py"], "env": { "SLC_API_KEY": "你的上图书APIKey" } } } }
发布到 PyPI 后,任意支持 MCP 的客户端都能用一条命令拉起,无需克隆仓库:
uvx shanghai-library-open-data-mcp # 本地 stdio(默认)
uvx shanghai-library-open-data-mcp --transport http --port 8080 # Streamable HTTP 远程(进阶可选)
客户端配置只需:command: uvx, args: ["shanghai-library-open-data-mcp"]。
除 stdio 外,本服务原生支持 Streamable HTTP(slc_mcp_http.py,纯标准库实现):
POST /mcp 处理 JSON-RPC(initialize 时签发 Mcp-Session-Id,通知类返回 202)GET /mcp 提供 SSE 流适合网页版 AI、手机端,或多人共用同一服务;需自行把服务跑在可访问的地址上。个人在编辑器本地使用,stdio 已足够,无需此模式。
三种客户端本质都是同一段 mcpServers JSON,区别只在配置文件路径。下面的示例用 uvx 拉起(免克隆仓库);想用本地脚本,把 command/args 换成 ["python3","/绝对路径/slc_mcp_server.py"] 即可。
WorkBuddy(本机已配置过一份) 配置文件:~/.workbuddy/mcp.json。本机已存在一份指向本地脚本 + Key 的配置,只需在连接器管理界面对「上海图书馆开放数据」点击 信任 即可在本会话启用;也可替换成下面的 uvx 写法。
{
"mcpServers": { "上海图书馆开放数据": { "command": "uvx", "args": ["shanghai-library-open-data-mcp"], "env": { "SLC_API_KEY": "你的上图书APIKey" } } } }
Cursor 配置文件:项目根目录 .cursor/mcp.json 或全局 ~/.cursor/mcp.json(同一段 JSON)。
Claude Desktop / Claude Code
mcpServers 合并进 %APPDATA%\Claude\claude_desktop_config.json(Windows)或 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)。claude mcp add 上海图书馆开放数据 -- uvx shanghai-library-open-data-mcp说明:12 个工具里
souyun_poem/souyun_rhyme/souyun_couplet/slc_endpoints免 Key 开箱即用,其余 8 个需要SLC_API_KEY。已发布到 PyPI、MCP 官方 Registry(io.github.FreyaBit/shanghai-library-open-data-mcp)、Smithery、ModelScope、GitHub,均可一键拉起。
SLC_API_KEY。{ "endpoint": "building_list", "params": { "freetext": "武康路" }, "key": "你的上图书APIKey" }
souyun_poem / souyun_rhyme / souyun_couplet / slc_endpoints)开箱即用。OpenSH-mcp/
├── README.md # 本文件 ├── pyproject.toml # PyPI 打包配置(uvx 入口) ├── slc_mcp_server.py # MCP 服务主程序(stdio,纯标准库) ├── slc_mcp_http.py # Streamable HTTP 传输层(纯标准库,进阶可选) ├── slc_endpoints.py # 99 个 webapi 接口注册表(自动生成) ├── gen_endpoints.py # 接口注册表生成器(从官方 API 文档解析) ├── souyun_poem.py # 搜韵诗词/韵典/对仗采集(免 token) ├── rag_kb.py # RAG 知识库骨架(纯标准库 TF-IDF) ├── mcp.json.template # MCP 客户端配置模板(不含 Key) └── tests/ # 测试(从环境变量读 Key,缺失会提示) ├── test_stdio.py # stdio 端到端(协议 + 真实调用) ├── test_live.py # handler 级实测(GET/POST/搜韵) └── test_mcp.py # 协议冒烟测试