BetterCallClaudeMCP
用于瑞士法律研究的模型上下文协议(MCP)服务器。
  ](https://nodejs.org)
此存储库是 单一事实来源 瑞士法律模式 为以下内容供电的上下文协议(MCP)服务器 BetterCallClaude 插件。 它包含:
- 七台MCP服务器 (参见 服务器),每个都是独立的
工作空间包位于 mcp-servers/.
- A. 单一HTTP聚合器 (
mcp-servers-http/)这暴露了所有七个
在单个Node.js Express进程上通过Streamable HTTP连接服务器。
- 生产部署在
mcp.bettercallclaude.ch (铁路,自部署 main).
此回购是 仅限MCP.击杀命令、技能、特工、钩子、.mcp.jsonconfig和Cowork插件清单fedec65/bettercallclaude.
服务器
| 服务器 | 工具 | 用途 |
|---|---|---|
bge-search | 3 | 瑞士联邦最高法院(BGE/ATF/DTF)裁决检索 |
entscheidsuche | 6 | 联邦+州法院判决搜索 决定.ch |
fedlex-sparql | 5 | 瑞士联邦立法 Fedlex SPARQL端点 |
legal-citations | 8 | 验证、解析、格式化、转换和提取瑞士法律引文 |
onlinekommentar | 4 | 学术评论来自 onlinecommmentar.ch |
legal-persona | 3 | 案例策略、瑞士法律文件起草(15种文件类型)和文件分析 |
tas-jurisprudence | 4 | TAS/CAS(体育仲裁法院)裁决检索 |
每台服务器发货 两者 作为stdio MCP(用于本地使用/测试)和 通过聚合器连接HTTP端点。看 docs/07-MCP-SERVERS-REFERENCE.md 为了 完整的工具参考。
存储库布局
mcp-servers/
├── bge-search/ # stdio MCP server + factory for HTTP wiring
├── entscheidsuche/ # ″
├── fedlex-sparql/ # ″
├── legal-citations/ # ″
├── legal-persona/ # ″
├── onlinekommentar/ # ″
├── tas-jurisprudence/ # ″
├── shared/ # database, HTTP, NLP and error utilities
└── integration-tests/ # cross-server tests
mcp-servers-http/ # Express app that mounts the 7 servers
# as //mcp HTTP Streamable endpoints.
# Dockerized and auto-deployed to Railway.
railway.toml # Railway build config (Dockerfile builder)每 mcp-servers/* directory是一个自包含的npm包。根 package.json 将它们连接在一起 npm工作区 所以你可以 一次性构建/测试所有这些包。包在 @bettercallclaude/* 内部范围。
生产部署
HTTP聚合器部署到Railway,并在 https://mcp.bettercallclaude.ch健康检查:
curl -s https://mcp.bettercallclaude.ch/health
# {"status":"ok","servers":7,"serverNames":["bge-search","entscheidsuche",
# "fedlex-sparql","legal-citations","onlinekommentar","legal-persona",
# "tas-jurisprudence"], ...}每个服务器都可以通过以下方式访问 https://mcp.bettercallclaude.ch//mcp 使用MCP流式HTTP传输(协议 2025-06-18).
合并到 main 自动重新部署 通过铁路↔ GitHub集成 (Dockerfile构建自 mcp-servers-http/Dockerfile). dev 是 一体化分支;PR目标 dev 并被提升为 main 通过a 单独合并PR。
发展
需要Node.js≥20和npm≥10。
# Install dependencies for every workspace
npm install
# Build all servers + the HTTP aggregator
npm run build
# Run tests across all workspaces
npm test
# Typecheck everything
npm run typecheck要在单个服务器上工作,请执行以下操作:
cd mcp-servers/bge-search
npm run build
npm test要在本地运行聚合器,请执行以下操作:
npm run build --workspaces
npm --workspace mcp-servers-http run start
# → listens on :3000, all 7 servers mounted at //mcpDocker(生产对等)
docker build -f mcp-servers-http/Dockerfile -t bcc-mcp .
docker run --rm -p 3000:3000 bcc-mcp
curl -s localhost:3000/health与Claude一起使用服务器
选项A-HTTP(推荐,无需安装)
将任何支持MCP的客户端指向已部署的Railway端点。就是这样 这 bettercallclaude 插件 电线本身通过其 .mcp.json:
{
"mcpServers": {
"bge-search": { "type": "http", "url": "https://mcp.bettercallclaude.ch/bge-search/mcp" },
"entscheidsuche": { "type": "http", "url": "https://mcp.bettercallclaude.ch/entscheidsuche/mcp" },
"fedlex-sparql": { "type": "http", "url": "https://mcp.bettercallclaude.ch/fedlex-sparql/mcp" },
"legal-citations": { "type": "http", "url": "https://mcp.bettercallclaude.ch/legal-citations/mcp" },
"onlinekommentar": { "type": "http", "url": "https://mcp.bettercallclaude.ch/onlinekommentar/mcp" },
"legal-persona": { "type": "http", "url": "https://mcp.bettercallclaude.ch/legal-persona/mcp" },
"tas-jurisprudence": { "type": "http", "url": "https://mcp.bettercallclaude.ch/tas-jurisprudence/mcp" }
}
}使用原始MCP调用验证服务器:
curl -s -X POST https://mcp.bettercallclaude.ch/bge-search/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-protocol-version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'选项B--stdio(本地,可破解)
构建工作区,然后指向Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json 上 macOS, %APPDATA%\Claude\claude_desktop_config.json 在Windows上) 编译入口点:
{
"mcpServers": {
"bge-search": {
"command": "node",
"args": ["/absolute/path/to/BetterCallClaudeMCP/mcp-servers/bge-search/dist/index.js"]
},
"legal-persona": {
"command": "node",
"args": ["/absolute/path/to/BetterCallClaudeMCP/mcp-servers/legal-persona/dist/index.js"]
}
// …one entry per server you want
}
}MCP检查员
# stdio
npx @modelcontextprotocol/inspector \
node ./mcp-servers/bge-search/dist/index.js
# HTTP
npx @modelcontextprotocol/inspector \
--transport http \
https://mcp.bettercallclaude.ch/bge-search/mcp贡献
- 分支机构从
dev,针对dev. - 尽可能将更改范围限制在单个工作区。
- 跑
npm run build && npm test在推之前。 - 合并到
main触发铁路重新部署。烟雾测试/health
晋升后。
许可证
GNU Affero通用公共许可证v3.0或更高版本 (AGPL-3.0或更高版本)。
AGPL将GPL的copyleft扩展到网络使用:如果你运行修改后的 此软件作为网络服务的版本(例如,托管您的 拥有 mcp-servers-http 聚合器),您必须制作相应的 修改后的源代码可供该服务的用户使用 许可证。
根据MIT条款,过去在MIT下发布的提交仍然可用 在复活日期之前获得它们的任何人;所有来自 重新发布的承诺是AGPL-3.0或更高版本。
