荷兰邮政编码查询服务

基于MCP协议的荷兰地址信息查询服务,支持通过邮政编码或WGS84坐标获取地址信息。

  • by dstotijn
  • Go
  • 本地部署
  • 更新于
在 GitHub 查看 dstotijn/mcp-dutch-postal-codes

使用说明

mcp荷兰邮政编码

主控程序 通过邮政编码或WGS84检索荷兰地址信息的服务器 协调。

此服务器是使用官方 MCP Go SDK.

需求

安装

常见MCP主机的配置(Claude Desktop、Cursor):

{
  "mcpServers": {
    "dutch-postal-codes": {
      "command": "go",
      "args": ["run", "github.com/dstotijn/mcp-dutch-postal-codes@main"]
    }
  }
}

或者,您可以手动安装该程序(假设您已安装Go):

go install github.com/dstotijn/mcp-dutch-postal-codes@main

用法

$ mcp-dutch-postal-codes --help

Usage of mcp-dutch-postal-codes:
  -http string
        HTTP listen address for JSON-RPC over HTTP (default ":8080")
  -sse
        Enable SSE transport
  -stdio
        Enable stdio transport (default true)

通常,您的MCP主机将运行程序并启动MCP服务器,您 不需要手动执行此操作。但如果你想手动运行MCP服务器, 例如,因为你想通过HTTP(使用SSE)提供服务:

如果你有你的 PATH 配置为包含以下路径的环境 $GOBIN (或 $GOPATH/bin $HOME/go/bin 如果 $GOBIN 未设置),则可以 运行:

mcp-dutch-postal-codes --stdio=false --sse

这将输出SSE传输URL:

2025/03/12 15:20:01 MCP server started, using transports: [sse]
2025/03/12 15:20:01 SSE transport endpoint: http://localhost:8080

致谢

使用Bert Hubert的测试实例 bagserv web服务 (文章).

许可证

Apache-2.0许可证


©️ 2025 大卫 斯托廷