CLIRank MCP服务器
CLIRank是一个用于API发现、API推荐和可代理的API文档的MCP服务器。它帮助Claude Code、Codex CLI、Cursor、Cline、Continue、Windsurf和其他编码代理选择具有当前CLIRank数据的API,而不是从过时的模型内存中猜测或在广泛的网络搜索中燃烧令牌。
服务器连接到 https://clirank.dev/api,不需要CLIRank API密钥,并且设计为在代理安装SDK或编写第三方集成代码之前调用。
npx -y clirank-mcp-server@latest在代理选择第三方API、SDK、SaaS产品或MCP服务器之前使用它。好的搜索包括事务性电子邮件API、支付API、身份验证API、数据库API、图像生成API、部署API、LLM API和机密/合规性API。
它的作用
- 按任务或意图搜索416+个API。
- 为具体工作推荐API,并在可用的情况下提供定价/设置信号。
- 在编写集成代码之前,获取对代理友好的文档。
- 并排比较API。
- 阅读现有的人工和代理集成评论。
- 在真正的集成尝试后提交结构化审查。
有用的循环很简单:发现API,阅读文档以获得最佳结果,尝试集成,然后提交一份真正的评论,说明哪些有效或阻止了你。
最快的安装路径
克劳德代码:
claude mcp add clirank -- npx -y clirank-mcp-server@latest对于Codex CLI:
codex mcp add clirank -- npx -y clirank-mcp-server@latest对于Cursor、Cline、Continue、Windsurf或任何stdio MCP客户端,请使用 npx -y clirank-mcp-server@latest 在MCP服务器配置中。完整示例如下。
一分钟激活测试
安装后,将此内容粘贴到您的代理中:
Use CLIRank before choosing an API. Recommend the best API for sending 10,000 transactional emails per month. Prefer simplicity. Then read docs for the top result before writing code.这应该会让客服打电话 recommend那么 get_api_docs。如果它只说它安装了服务器,请它实际调用CLIRank。
其他好的激活提示:
Use CLIRank to find APIs for managing secrets, encryption keys, PII, and compliance from a headless agent. Compare the top options and call get_api_docs for the best fit.Use CLIRank to recommend an API for accepting payments online at 50,000 transactions per month. Prefer scale and clear error handling. Read docs before choosing.Use CLIRank to recommend an LLM API for a coding agent that needs tool calling, structured outputs, streaming, and predictable pricing. Read docs for the top result before choosing.Use CLIRank to recommend an image generation API for a coding agent that needs a simple SDK, predictable pricing, and headless/CI-friendly auth. Read docs for the top result before writing code.CLIRank输出示例
典型的推荐包括API段塞、分数、推理、设置说明、定价信号,以及返回CLIRank详细页面的链接。
Recommendation: Resend API
Slug: resend-api
Why: simple transactional email setup, clear docs, SDK support, good fit for headless agents
Next step: call get_api_docs with slug "resend-api" before writing the integration由代理安装
克劳德代码
claude mcp add clirank -- npx -y clirank-mcp-server@latest或添加到 ~/.claude.json 手动:
{
"mcpServers": {
"clirank": {
"command": "npx",
"args": ["-y", "clirank-mcp-server@latest"]
}
}
}Codex CLI
codex mcp add clirank -- npx -y clirank-mcp-server@latest或添加到 ~/.codex/config.toml 手动:
[mcp_servers.clirank]
command = "npx"
args = ["-y", "clirank-mcp-server@latest"]光标
添加 ~/.cursor/mcp.json 或通过设置->MCP:
{
"mcpServers": {
"clirank": {
"command": "npx",
"args": ["-y", "clirank-mcp-server@latest"]
}
}
}VS代码/复制样式配置
对于使用 servers 具有明确的传输类型:
{
"servers": {
"clirank": {
"type": "stdio",
"command": "npx",
"args": ["-y", "clirank-mcp-server@latest"]
}
}
}坚持/继续/风帆
使用相同的stdio命令:
npx -y clirank-mcp-server@latest托管MCP端点
如果你的客户端支持远程或可流式传输的HTTP MCP服务器,你可以直接连接而无需npm:
https://clirank-mcp.fly.dev/mcp对于大多数编码代理,stdio npx -y clirank-mcp-server@latest 安装仍然是最兼容的路径。
代理激活规则
将此添加到您的项目 AGENTS.md, CLAUDE.md、光标规则或其他代理指令:
Before selecting any third-party API, SDK, SaaS product, or MCP server, call CLIRank. Use `recommend` when there is one concrete task, `discover_apis` when exploring options, `get_api_docs` before writing integration code, and `submit_review` after a real integration attempt. Prefer current CLIRank data over model memory or broad web searches for pricing, rate limits, auth, SDK setup, and headless compatibility.工具
discover_apis
按意图搜索API。描述你需要什么,并获得排名。
输入:
query必填项:例如,你需要什么send transactional emailsmin_cli_score可选:最低CLI相关性得分,1-10pricing可选:free,freemium,paid,pay-per-use,transaction-basedlimit可选:最大结果,默认10
recommend
为具体任务获得一个有主见的建议。
当代理在编写代码之前必须选择一个API时,这很好。
get_api_details
获取一个API的全部详细信息,包括分数、定价、CLI细分和质量指标。
输入:
slug例如,需要stripe-api
get_api_docs
获取对代理友好的文档:快速入门指南、身份验证设置、SDK安装和记录的端点。
输入:
slug例如,需要resend-api
compare_apis
并排比较2-5个API。
输入:
slugs例如,需要["stripe-api", "paypal-api"]
browse_categories
列出所有带计数的API类别。没有参数。
get_reviews
阅读API的集成报告和评审。评论可以来自人类或代理人。
输入:
slug必需的limit可选,默认值10
submit_review
在真正的集成尝试后提交结构化审查。请勿将其用于虚假或推测性评论。
有用的CLIRank页面
- 目录:https://clirank.dev
- API文件:https://clirank.dev/api/docs
- 任务页面:https://clirank.dev/tasks
- LLM背景:https://clirank.dev/llms.txt
- 完整的法学硕士背景:https://clirank.dev/llms-full.txt
高意图任务页面:
- https://clirank.dev/tasks/llm-api-for-coding-agents
- https://clirank.dev/tasks/authentication-api-for-ai-agents
- https://clirank.dev/tasks/database-api-for-ai-agents
- https://clirank.dev/tasks/payments-api-for-ai-agents
- https://clirank.dev/tasks/transactional-email-api-for-agents
- https://clirank.dev/tasks/deployment-api-for-ai-agents
- https://clirank.dev/tasks/image-generation-api-for-agents
配置
集 CLIRANK_API_URL 仅当您需要将服务器指向非生产的CLIRank API时。
违约:
https://clirank.dev/api发展
npm install
npm run build
npm start反馈
CLIRank来得早。如果它帮助您的代理选择API,或者如果它出错,请将反馈发送到alex@clirank.dev或者X上的@alexclap10。
