【技术文档摘要】:
[!警告]
此MCP服务器使用polarsteps-api包通过未记录的API访问Polarsteps数据。重要:在使用此工具之前,请阅读相关的法律免责声明和使用条款。使用此MCP服务器即表示您同意API包中概述的条款并认可相关风险。
这是一个模型上下文协议(MCP)服务器,使Claude和其他AI助手能够访问Polarsteps旅行数据。使用自然语言查询用户资料、行程详情、旅行统计数据,并搜索旅行历史。
在将其添加到PyPI之前,最快速的开始方式是使用Smithery:
npx -y @smithery/cli install @remuzel/polarsteps-mcp --client claude
然后配置您的Polarsteps令牌。
您需要Polarsteps的remember_token来验证API请求。
将令牌设置为环境变量:
export POLARSTEPS_REMEMBER_TOKEN="your_remember_token_here"
在您的Claude桌面设置中添加以下配置:
{
"mcpServers": {
"polarsteps": {
"command": "uvx",
"args": ["--from", "git+https://github.com/remuzel/polarsteps-mcp", "polarsteps-mcp"],
"env": {
"POLARSTEPS_REMEMBER_TOKEN": "your_remember_token_here"
}
}
}
}
配置完成后,您可以向Claude询问如下问题:
使用检查器进行本地MCP服务器测试:
npx @modelcontextprotocol/inspector uvx --from git+https://github.com/remuzel/polarsteps-mcp polarsteps-mcp
用于开发或手动安装:
# 克隆仓库
git clone https://github.com/remuzel/polarsteps-mcp
cd polarsteps-mcp
# 设置开发环境
just setup
# 或不使用just:
uv sync --dev && uv pip install -e .
just test
just test-mcp
just lint