CardPilot远程MCP服务器
这是遥控器 MCP(模型上下文协议) CardPilot服务器。它公开了获取和分析信用卡数据的工具。
服务器URL
公共URL: https://mcp.cardpilot.ca/sse
备注:此服务器使用自定义域来确保与OpenAI Agent Builder的兼容性。
可用工具
1. get-cards
获取包含详细元数据的信用卡列表,适合排名和比较。
输入参数:
| 参数 | 类型 | 说明 |
|---|---|---|
sort | string (enum) | 排序条件: recommended, welcome_offer, interest_rate, annual_fee, net_value |
direction | string (enum) | 排序方向: asc, desc |
ids | string | 以逗号分隔的卡ID列表(例如。, card-a,card-b) |
bank | string | 按银行名称筛选(例如“TD”、“RBC”) |
category | string | 按类别筛选(例如,“旅行”、“现金返还”) |
noFee | boolean | 设置为 true 过滤无年费卡 |
limit | number | 可退回的最大卡数(默认值:5) |
persona | string (enum) | 定制排名的目标人物: average, student, newcomer, premium |
输出结构:
{
"cards": [
{
"cardId": "string",
"name": "string",
"bank": "string",
"annualFee": number,
"score": number,
"details": { "rewards": number, "perks": number, "fees": number, ... }
}
],
"meta": { "total": number, "sort": "string", "direction": "string" }
}2. get-guides
获取教育指南元数据列表。此工具针对聊天机器人进行了优化,可提供完整文章的链接。
输入参数: 无
输出结构:
{
"guides": [
{
"slug": "string",
"title": "string",
"intro": "string",
"icon": "string (emoji)",
"url": "string"
}
]
}代理系统提示
如果您将此MCP服务器与LLM代理(如OpenAI自定义GPT)一起使用,请在系统说明中添加以下内容:
You are an expert credit card advisor powered by CardPilot data.
1. **Card Recommendations**:
- ALWAYS use the `get-cards` tool to fetch real-time data before making recommendations.
- Set `limit=5` by default to ensure concise recommendations.
- If the user specifies or asks for a specific persona (e.g., student, newcomer), set the `persona` parameter (e.g., `persona="student"`).
- Use the `sort` parameter to align with user priorities (e.g., `sort="annual_fee"` for cheap cards).
- Use filters like `bank="TD"` or `category="travel"` to narrow down results.
- For "no fee" requests, explicitly set `noFee=true`.
- When presenting cards, list the Name, Annual Fee, Welcome Bonus, and a brief "Why it fits" explanation.
- Link the card name to the `applyUrl` or CardPilot detail page if available.
2. **Educational Content**:
- If a user asks general questions (e.g., "Cash back vs Points"), use `get-guides` to see if there is a relevant article.
- Provide the answer based on the guide's `intro` and encourage the user to read the full guide by providing the `url`.
3. **General Rules**:
- Do not make up card details. If data is missing, state that.
- Be concise and helpful.如何使用
OpenAI代理生成器
- 创建新代理。
- 在...之下 行动,单击 添加操作.
- 选择“从URL添加”。
- 输入:
https://mcp.cardpilot.ca/sse - 它应该加载
get-cards工具立即。
Cloudflare AI游乐场
- 首选 https://playground.ai.cloudflare.com/
- 输入服务器URL:
https://mcp.cardpilot.ca/sse - 点击 连接.
克劳德桌面版
将以下内容添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"cardpilot": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.cardpilot.ca/sse"
]
}
}
}故障排除
OpenAI 424错误(“无法加载工具”)
如果您看到此错误,请确保您正在使用 自定义域名 URL(mcp.cardpilot.ca). OpenAI块通用 .workers.dev MCP服务器的域。
本地开发
要在本地进行测试:
- 安装依赖项:
npm install- 启动本地服务器:
npm start(在端口8787上运行)
- 通过Ngrok曝光 (OpenAI测试需要):
ngrok http 8787使用Ngrok URL(例如。, https://xxxx.ngrok-free.app/sse)在Agent Builder中。
部署
部署到Cloudflare Workers:
npm run deploy服务器将在 https://mcp.cardpilot.ca/sse.
