simap MCP服务器
](./LICENSE) ](https://www.npmjs.com/package/@digilac/simap-mcp) ](https://github.com/Digilac/simap-mcp/actions/workflows/ci.yml)

一 主控程序 (模型上下文协议)服务器,用于与 simap.ch瑞士的公共采购平台。
使Claude和其他人工智能助手能够搜索和查看瑞士的公开招标。
由开发 Digilac.
特性
| 工具 | 说明 |
|---|---|
search_tenders | 使用过滤器(文本、日期、类型、州、CPV)搜索投标书 |
get_tender_details | 获取特定招标的完整详细信息 |
search_cpv_codes | 搜索CPV代码(通用采购词汇) |
browse_cpv_tree | 浏览CPV代码层次结构 |
list_cantons | 列出瑞士所有州 |
list_institutions | 列出瑞士公共机构 |
get_publication_history | 获取项目的发布历史记录 |
search_proc_offices | 搜索公共采购办公室 |
search_bkp_codes | 搜索BKP代码(建筑) |
browse_bkp_tree | 浏览BKP代码层次结构 |
search_npk_codes | 搜索NPK代码(标准化职位) |
browse_npk_tree | 导航NPK代码层次结构 |
search_oag_codes | 搜索OAG代码(对象类型) |
browse_oag_tree | 浏览OAG代码层次结构 |
先决条件
- Node.js≥22 (LTS或更新版本)。
- MCP兼容客户端(克劳德代码、克劳德桌面、光标、VS代码、Windsurf、Cline、Zed等)。
- 不需要simap帐户或API密钥-simap API是公共和只读的。
安装和配置
推荐的方式是 npx --不需要全局安装。在下面选择您的客户并复制片段。
克劳德桌面版
编辑Claude Desktop配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}重新启动Claude Desktop以使更改生效。
其他客户
Claude Code (CLI)
增添 ~/.claude/settings.json:
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}Cursor
全局配置位于 ~/.cursor/mcp.json (所有项目)或项目级别 .cursor/mcp.json:
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}完全退出并重新打开Cursor——MCP服务器仅在启动时加载。
VS Code (GitHub Copilot)
工作区配置位于 .vscode/mcp.json (或通过打开用户级文件 MCP:打开用户配置 命令):
{
"servers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}VS代码使用servers作为顶级密钥(不是mcpServers).
Windsurf
编辑 ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}Cline (VS Code extension)
打开克莱恩的 MCP服务器 面板→ 配置 选项卡,然后粘贴:
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"],
"disabled": false
}
}
}Zed
编辑用户 settings.json (~/.config/zed/settings.json 在macOS/Linux上, %APPDATA%\Zed\settings.json 在Windows上)或项目级别 .zed/settings.json:
{
"context_servers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}Zed使用 context_servers 作为顶级密钥。Alternative: Global install
npm install -g @digilac/simap-mcp然后使用direct命令配置您的客户端:
{
"mcpServers": {
"simap": {
"command": "simap-mcp"
}
}
}Alternative: From source
git clone https://github.com/Digilac/simap-mcp.git
cd simap-mcp
npm install
npm run build然后使用绝对路径配置客户端:
{
"mcpServers": {
"simap": {
"command": "node",
"args": ["/absolute/path/to/simap-mcp/dist/index.js"]
}
}
}用法
配置后,只需用自然语言询问您的AI助手。提到“in simap”以确保助手通过MCP服务器路由请求:
- *“向我展示今天在simap上发布的新招标”*
- *“查找西马沃州的建筑招标”*
- *“用simap告诉我这次招标的详细信息”* (搜索后)
- *“在simap中搜索IT服务的CPV代码”*
上市于
贡献
欢迎投稿!看 贡献.md 用于开发设置和命令,以及 建筑.md 用于架构、内部模式和完整的工具参数参考。
API
此服务器使用来自的公共API simap.ch.
