MCP server for world geographic data. 261 countries, 13.4M cities.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add bamwor --env BAMWOR_API_KEY='<BAMWOR_API_KEY>' -- npx -y bamwor-mcp-server~/.codex/config.toml
[mcp_servers.bamwor]
command = "npx"
args = ["-y", "bamwor-mcp-server"]
env = { BAMWOR_API_KEY = "<BAMWOR_API_KEY>" }
# codex mcp add bamwor --env BAMWOR_API_KEY='<BAMWOR_API_KEY>' -- npx -y bamwor-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"bamwor": {
"command": "npx",
"args": [
"-y",
"bamwor-mcp-server"
],
"env": {
"BAMWOR_API_KEY": "<BAMWOR_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"bamwor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"bamwor-mcp-server"
],
"env": {
"BAMWOR_API_KEY": "<BAMWOR_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bamwor": {
"command": "npx",
"args": [
"-y",
"bamwor-mcp-server"
],
"env": {
"BAMWOR_API_KEY": "<BAMWOR_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bamwor": {
"command": "npx",
"args": [
"-y",
"bamwor-mcp-server"
],
"env": {
"BAMWOR_API_KEY": "<BAMWOR_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"bamwor": {
"command": "npx",
"args": [
"-y",
"bamwor-mcp-server"
],
"env": {
"BAMWOR_API_KEY": "<BAMWOR_API_KEY>"
}
}
}
}需要的环境变量
BAMWOR_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。