Token导航 LogoToken导航TokenDH.com
Pblic Apis MCP Server logo
开发工具未说明官方级别未说明来源级核验

Pblic Apis MCP Server

MCP Server

一个基于MCP协议的服务,提供对1500多个免费公共API的实时搜索、测试和代码生成功能。

工具数

7

提示词数

0

GitHub Stars

3

资源数

0
API集成代码生成TypeScriptClaude开发工具Claude DesktopClaudeCursorWindsurfClineVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

josephsenior

提供方

josephsenior

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp公共api

让你的AI编码代理能够立即查找、测试和集成1500多个免费公共API中的任何一个。

![License: MIT](LICENSE) ![MCP Compatible](https://modelcontextprotocol.io) ![Works with Claude](https://claude.ai) ![Works with Cursor](https://cursor.sh) ![Works with Windsurf](https://codeium.com/windsurf) ![Works with Cline](https://github.com/cline/cline)

来自社区的数据得到维护 公共api 列表·每日同步

______________________________________________________________________

这是什么?

MCP(模型上下文协议) 服务器,使AI编码代理能够实时访问公共api数据集。代理可以在一次对话中搜索、探测和生成工作代码,而不是复制API文档。

You:   "Find me a free weather API with no auth that supports HTTPS"
Agent: [calls search_apis] → returns top matches with auth/HTTPS/CORS details

You:   "Test the first one — show me what the response looks like"
Agent: [calls probe_api] → live GET request, returns status + response shape

You:   "Generate an axios snippet for it"
Agent: [calls generate_snippet] → ready-to-paste curl, fetch, and axios code

______________________________________________________________________

安装

为您的客户端选择配置并粘贴。不需要构建步骤-- npx 处理一切。

Claude Desktop

文件: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)\ 文件: %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "public-apis": {
      "command": "npx",
      "args": ["mcp-public-apis"]
    }
  }
}

Cursor

文件: .cursor/mcp.json 在项目根目录中(或 ~/.cursor/mcp.json 全球)

{
  "mcpServers": {
    "public-apis": {
      "command": "npx",
      "args": ["mcp-public-apis"]
    }
  }
}

Windsurf

文件: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "public-apis": {
      "command": "npx",
      "args": ["mcp-public-apis"]
    }
  }
}

Cline (VS Code)

打开VS代码→ Cline侧边栏→ MCP服务器 tab → 添加服务器 → 粘贴:

{
  "public-apis": {
    "command": "npx",
    "args": ["mcp-public-apis"]
  }
}

Local build

git clone https://github.com/josephsenior/pblic-apis-mcp-server
cd pblic-apis-mcp-server
npm install
npm run build
node dist/index.js

______________________________________________________________________

工具

工具功能关键参数
search_apis按关键字、类别、身份验证类型和HTTPS进行模糊搜索1500多个APIquery, category, auth, httpsOnly, limit
get_categories列出每个类别及其API计数-
get_api_detail一个API的完整记录(按名称)name
probe_api实时HTTP GET到任何端点——返回状态、延迟和响应预览url, apiKey, timeoutMs
compare_apis一个类别中所有API的并排视图category, limit
find_no_auth_apis只有需要零身份验证的APIcategory, httpsOnly, limit
generate_snippet粘贴就绪 curl, fetch,以及 axios 片段url, apiKey, headers

search_apis 参数

参数类型默认值说明
querystring-针对API名称和描述的模糊匹配
categorystring--准确的类别名称(使用 get_categories 浏览)
auth"No""apiKey""OAuth"--按身份验证要求筛选
httpsOnly布尔值true排除非HTTPS API
limit编号5最大结果(1–20)

______________________________________________________________________

运作原理

MCP Client (Claude / Cursor / etc.)
        │  JSON-RPC over stdio
        ▼
  mcp-public-apis server
        │
        ├─ In-memory cache (24 h TTL)
        │
        └─ GitHub raw · public-apis/public-apis README.md
  1. 首次使用时,服务器从GitHub获取公共api README,将每个Markdown表行解析为结构化 PublicAPI 对象,并将其存储在24小时内存缓存中。
  2. 所有搜索和筛选操作都在本地针对该缓存运行,每个查询都没有外部调用。
  3. probe_api 是向第三方端点(您显式传递的端点)发出请求的唯一工具。

______________________________________________________________________

数据源

所有API记录来自 公共api/公共api --一个由社区维护的列表,包含60多个类别的1500多个免费API。数据每24小时更新一次。

______________________________________________________________________

许可证

麻省理工学院

目录标签

目录标签

API集成代码生成TypeScriptClaude开发工具API搜索本地部署MCP协议无认证API

支持客户端

Claude DesktopClaudeCursorWindsurfClineVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

oauth

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明oauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP