PublicAPIs.io

io.publicapis由 publicapis.io 发布官方发布者v1.0.0更新于 Oct 25, 2026

Search 1,500+ public APIs with docs, code and auth/free-tier filters; list or sponsor your API.

已验证Streamable HTTP可网页运行网页搜索与抓取开发者工具商业与电商

概览

AI 生成的概览

一个远程 MCP 服务器,让助手搜索 1,500 多个公共 API、进行比较、获取文档与示例代码,并洽谈 API 收录或赞助。

可以做什么
按任务搜索 1,500 多个公共 API,返回名称、描述、分类和链接,描述中提到可按认证方式和免费额度筛选。按 slug 获取单个 API 的完整信息,包括文档摘要、端点、认证、价格和链接。获取 JavaScript、Python 或 curl 的可直接运行示例代码,并标注已验证的样例。并排比较 2 到 5 个 API 的认证、免费额度、HTTPS、价格和文档摘要。列出收录与赞助方案及固定价格和当前可用性,随后开启并继续与经纪代理的对话,跟踪交易状态和付款链接。
适用场景
当助手需要为某项任务寻找第三方 API 或数据集、在编写集成代码前确认 API 的认证与价格,或在多个候选 API 之间做选择时适用。若想在 PublicAPIs.io 上收录或赞助 API,也可使用。
运行要求
远程 streamable HTTP 端点,位于 publicapis.io;未声明任何软件包、环境变量或请求头。目录类工具未声明需要认证。交易工具需要提供 API 名称、网站和联系邮箱以开启对话。
安装前请注意
交易工具会与经纪代理开启商业对话,可能导向付费收录或赞助,并在 awaiting_payment 阶段返回付款链接;任何付款都应视为真实承诺。交易工具会返回 deal_id 和 deal_key,必须保留才能继续。你提供的联系邮箱和 API 信息会发送至 PublicAPIs.io。API 的价格与认证信息来自该目录,依赖前应自行核实。

安装

在 SourceWeft 中

  1. 打开 控制台中的 PublicAPIs.io,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.publicapis%2Fdirectory/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "publicapis-io": {
      "type": "http",
      "url": "https://publicapis.io/mcp"
    }
  }
}

工具

8

search_apis

Find a public API or data source for a task: use this whenever the user (or your code) needs an API, dataset or third-party service, e.g. weather, geocoding, payments, sports scores, crypto prices, jobs, LLMs. Searches 1,500+ APIs on PublicAPIs.io and returns name, description, category, link and signals (auth: none/api_key/oauth, free_tier, https). Filter with auth="none" for APIs that need no key, free=true, https=true.

输入参数authfreehttpslimitquerycategory

get_api

Everything about one API by slug (from search_apis): documentation summary, endpoints, auth, pricing and links. Use before writing integration code.

输入参数slug必填

get_quickstart

Ready-to-run example code for calling an API, in javascript, python or curl. Use when you are about to integrate an API into code. Verified samples are marked verified=true.

输入参数slug必填language

compare_apis

Compare 2-5 APIs side by side (auth, free tier, HTTPS, pricing, docs summary) to choose one. Pass slugs from search_apis.

输入参数slugs必填

list_offerings

Ways to get an API listed or sponsored on PublicAPIs.io, with fixed prices, current sponsorship availability and the rules.

无需输入参数。

start_deal

Open a conversation with the PublicAPIs.io broker agent to list or sponsor an API. Say what you want in plain language and include the API name, website and a contact email if you have them. Returns deal_id and deal_key (keep both; they are needed to continue) and the broker's reply. Every deal is approved by a person before payment.

输入参数companymessage必填websiteapi_namecontact_namecontact_email必填

send_message

Reply to the broker in an open deal. Returns the broker's answer and the deal status.

输入参数deal_id必填message必填deal_key必填

get_deal

Status of a deal: negotiating, agreed, awaiting_approval, awaiting_payment (payment_url is included), publishing, live (live_url), rejected. Also returns the last messages.

输入参数deal_id必填deal_key必填

版本历史

1
  1. v1.0.0最新Oct 15, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。