rival-mcp
MCP server for querying AI model comparison data from rival.tips
该服务器允许AI编码助手——Claude Code、Cursor、Windsurf和任何兼容MCP的客户端——在不离开编辑器的情况下,本地查询模型基准、定价、功能和并排比较。
快速开始
npx rival-mcp不需要API密钥。所有数据都来自公共竞争对手.tips API。
配置
克劳德代码
添加到您的 .claude/settings.json (项目层面)或 ~/.claude/settings.json (全球):
{
"mcpServers": {
"rival": {
"command": "npx",
"args": ["-y", "rival-mcp"]
}
}
}克劳德桌面版
添加 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"rival": {
"command": "npx",
"args": ["-y", "rival-mcp"]
}
}
}光标
添加到光标MCP设置(.cursor/mcp.json):
{
"mcpServers": {
"rival": {
"command": "npx",
"args": ["-y", "rival-mcp"]
}
}
}帆板运动
添加到您的Windsurf MCP配置中:
{
"mcpServers": {
"rival": {
"command": "npx",
"args": ["-y", "rival-mcp"]
}
}
}可用工具
list-models
列出所有具有可选过滤功能的AI模型。
参数:
| 参数 | 类型 | 说明 |
|---|---|---|
provider | string(可选) | 按提供程序筛选: OpenAI, Anthropic, Google, Meta, Mistral等等。 |
category | string(可选) | 按类别筛选: flagship, reasoning, coding, small, free, image-gen |
capability | string(可选) | 按功能筛选: chat, code, vision, image-gen, function-calling |
q | string(可选) | 跨名称、ID、提供者和描述的自由文本搜索 |
示例提示:
- “列出所有Anthropic模特”
- “显示免费模型”
- “哪些模型支持愿景?”
get-model
获取有关特定模型的详细信息——基准、定价、功能、独特功能和提供商可用性。
参数:
| 参数 | 类型 | 说明 |
|---|---|---|
id | string(必填) | 型号ID,例如。 gpt-4.1, claude-3.7-sonnet, gemini-2.5-pro |
示例提示:
- “获取claude-3.7-onnet的详细信息”
- “gpt-4.1的基准是什么?”
compare-models
并排比较2-3个模型——基准、定价、功能和共同挑战。
参数:
| 参数 | 类型 | 说明 |
|---|---|---|
models | string(必填) | 逗号分隔的模型ID(2-3)。例子: gpt-4.1,claude-3.7-sonnet |
示例提示:
- “比较GPT-4.1与克劳德3.7十四行诗”
- “Gemini 2.5 Pro与GPT-4.1和Claude Sonnet相比如何?”
search-models
当您不知道确切的型号ID时,按名称、描述或功能搜索型号。
参数:
| 参数 | 类型 | 说明 |
|---|---|---|
query | string(必填) | 搜索查询,例如。 vision, cheap coding, fast reasoning |
示例提示:
- “寻找擅长编码的模型”
- “搜索廉价的推理模型”
发展
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run the built server
npm start运作原理
此MCP服务器通过stdio(标准输入/输出)使用 模型上下文协议当人工智能助手需要模型比较数据时,它会调用适当的工具,该工具从竞争对手.tips公共API获取数据并返回结构化JSON。
服务器不公开任何资源或提示,只公开工具。所有数据都是只读的,公开可用。
数据源
所有模型数据均来自 竞争对手tips,一个AI模型比较平台,其特点是:
- 60多个具有基准、定价和能力数据的AI模型
- 与共享挑战响应进行并排比较
- 社区驱动的AI决斗投票和排名
- 跨编码、创意和推理任务预先生成的展示响应
许可证
麻省理工学院


