Polarsteps MCP 服务器是一个基于 模型上下文协议 (MCP) 的服务器,它能让 Claude 等 AI 助手访问 Polarsteps 的旅行数据。你可以通过自然语言查询用户资料、旅行详情、旅行统计信息,还能搜索旅行历史记录。
⚠️ 重要提示
此 MCP 服务器使用
polarsteps-api
包,通过未公开的 API 访问 Polarsteps 数据。重要:在使用此工具前,请阅读相关的 法律免责声明和使用条款。使用此 MCP 服务器即表示你同意 API 包中概述的条款,并知悉相关风险。
在我将其添加到 PyPI 之前,最快的开始方式是使用 Smithery:
npx -y @smithery/cli install @remuzel/polarsteps-mcp --client claude
然后配置你的 Polarsteps 令牌。
若你需要进行开发或手动安装,可按以下步骤操作:
# 克隆仓库
git clone https://github.com/remuzel/polarsteps-mcp
cd polarsteps-mcp
# 设置开发环境
just setup
# 若没有 just,可使用以下命令
uv sync --dev && uv pip install -e .
你需要使用 Polarsteps 的 remember_token
来对 API 请求进行身份验证。
remember_token
Cookie。将令牌设置为环境变量:
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
just test
just test-mcp
just lint