Token导航 LogoToken导航

MCP Server · 运维云端

toolcast (Djsand)

toolcast是一个将任何OpenAPI规范转换为AI代理工具的解决方案,通过简单命令即可创建MCP服务器,支持多种API调用。

stdio官方级别未说明来源级核验工具 7toolcast
API代理TypeScriptClaudeAI工具集成Cursor

快速开始

作者 / 组织
Djsand
提供方
Djsand
运行时
Node.js

工具数量

7

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

5

仓库热度

收录来源

1 个

MCP World

选型结论

toolcast (Djsand) 属于运维云端类 MCP Server,公开资料标注 7 个工具,通过stdio 本地进程接入,适配 Claude、Cursor,有可以直接复制的安装命令;接入前要先准备 API Key。

分类

运维云端

传输方式

stdio

认证方式

API Key

部署方式

公开资料未说明

安装与配置

安装命令

npx toolcast serve https://petstore3.swagger.io/api/v3/openapi.json

客户端配置示例

{
  "mcpServers": {
    "toolcast": {
      "command": "npx",
      "args": [
        "toolcast",
        "serve",
        "https://petstore3.swagger.io/api/v3/openapi.json"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 7 个工具,随便调一个只读工具确认能返回结果。

接入前确认

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

详细介绍

toolcast

Turn any API into an AI agent tool. One command.

Point at an OpenAPI spec. Get a working MCP server in 10 seconds.

Your AI agent can now call Stripe, GitHub, Slack, Notion — or any API with a spec.

Quick Start • Registry • How It Works • Examples • Contributing

______________________________________________________________________

问题

您希望您的人工智能代理调用API。今天你必须:

  1. 为特定的API查找或构建MCP服务器
  2. 编写工具定义、参数模式、身份验证处理
  3. 测试、调试、部署
  4. 对每个新的API重复

toolcast在一个命令中完成所有这些。

快速开始

# Try it right now with the demo Petstore API (no auth needed)
npx toolcast serve https://petstore3.swagger.io/api/v3/openapi.json

就是这样。你的人工智能代理现在有19个工具来管理宠物、订单和用户。

添加一个真正的API

# Add Stripe to your Claude Code config
npx toolcast add stripe

# Or point at any OpenAPI spec
npx toolcast serve https://api.example.com/openapi.json --bearer-token $MY_TOKEN

上菜前检查

# See what tools would be generated
npx toolcast inspect https://petstore3.swagger.io/api/v3/openapi.json
  Swagger Petstore v1.0.27

  19 Tools:

  addPet                    POST    /pet              (1 params)
  updatePet                 PUT     /pet              (1 params)
  findPetsByStatus          GET     /pet/findByStatus (1 params)
  getPetById                GET     /pet/{petId}      (1 params)
  getInventory              GET     /store/inventory  (0 params)
  placeOrder                POST    /store/order      (1 params)
  createUser                POST    /user             (1 params)
  ...

注册表

toolcast附带了流行API的预构建配置。添加它们的一个命令:

API命令获得的内容
GitHubtoolcast add githubrepo、问题、PR、操作、用户
条纹toolcast add stripe付款、订阅、发票
Slacktoolcast add slack消息、渠道、用户、反应
概念toolcast add notion页面、数据库、块、搜索
线性toolcast add linear问题、项目、团队、周期
OpenAItoolcast add openai完成、嵌入、图像
宠物店toolcast add petstore用于测试的演示API
# List all available APIs
toolcast list

# Search by keyword
toolcast search payments

想要添加API吗? 看 贡献.

运作原理

                    +-----------------+
  OpenAPI Spec ---> |     toolcast      | ---> MCP Server (stdio)
  (URL or file)     |                 |      ready for Claude Code,
                    | 1. Parse spec   |      Cursor, or any MCP client
                    | 2. Build tools  |
                    | 3. Handle auth  |
                    +-----------------+
  1. 解析 --读取任何OpenAPI 3.0/3.1规范(JSON或YAML、URL或文件)。解决 $refs、 提取端点、参数和身份验证方案。
  1. 构建工具 -每个API端点都成为一个MCP工具,具有:

- 人类可读的名称(来自 operationId) - 清晰的描述(来自 summary + description) - 类型化的输入模式(来自参数+请求体) - 正确的参数处理(路径、查询、标头、正文)

  1. 服务 -启动一个stdio MCP服务器,该服务器使用正确的身份验证、头和错误格式将工具调用代理到真正的API。

例子

与Claude Code一起使用

添加到您的 .mcp.json:

{
  "mcpServers": {
    "my-api": {
      "command": "npx",
      "args": ["toolcast", "serve", "https://api.example.com/openapi.json"],
      "env": {
        "API_TOKEN": "your-token-here"
      }
    }
  }
}

或者使用 add 自动配置命令:

toolcast add github
# Adds to .mcp.json automatically

与本地规范文件一起使用

toolcast serve ./my-api-spec.yaml --base-url https://localhost:3000

以编程方式使用

import { parseSpec, createMcpServer } from "toolcast";

const spec = await parseSpec("https://api.example.com/openapi.json");
const server = createMcpServer(spec, {
  baseUrl: "https://api.example.com",
  auth: { type: "bearer", value: process.env.API_TOKEN },
});

认证

toolcast支持三种身份验证方法,可从OpenAPI规范中自动检测:

方法环境变量标志
持有者令牌API_TOKEN, BEARER_TOKEN, AUTH_TOKEN--bearer-token
API密钥API_KEY,或源自方案名称--api-key
基本认证API_USER + API_PASSWORD—

注册表项指定要使用哪个env变量(例如。, GITHUB_TOKEN GitHub)。

CLI参考

toolcast serve        Start MCP server from OpenAPI spec
  --base-url         Override base URL
  --api-key          API key auth
  --bearer-token   Bearer token auth

toolcast inspect      Preview tools without starting server

toolcast add          Add registry API to .mcp.json
  --config 
         Config file path (default: .mcp.json)

toolcast list               List all registry APIs
toolcast search      Search registry
toolcast --version          Show version
toolcast --help             Show help

贡献

将API添加到注册表

  1. 在中创建一个YAML文件 registry/:
name: my-api
displayName: My API
description: What this API does
specUrl: https://example.com/openapi.json
baseUrl: https://api.example.com
authType: bearer
authEnvVar: MY_API_KEY
tags:
  - category
  - keywords
  1. 提交PR。就是这样。

发展

git clone https://github.com/your-username/toolcast.git
cd toolcast
npm install
npm run build
npm test

# Test locally
node dist/cli.js inspect https://petstore3.swagger.io/api/v3/openapi.json

许可证

麻省理工学院

工具与能力

工具数量

7

资源数量

0

提示词数量

0

能力标签

API代理TypeScript本地部署OpenAPI转换MCP服务器AI工具集成

支持客户端

ClaudeCursor

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 7 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Node.js,换机器要重新装一遍。
  • 需要自备API Key,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到API Key的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
toolcast (Djsand)

MCP World · 本页

7stdio有1 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

toolcast (Djsand) 怎么安装?

公开资料给出的安装命令是 npx toolcast serve https://petstore3.swagger.io/api/v3/openapi.json,运行环境为 Node.js。装完后按客户端要求写进 MCP 配置,重启客户端生效。

toolcast (Djsand) 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Node.js;保存后完全退出客户端再打开,配置才会生效。

toolcast (Djsand) 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

toolcast (Djsand) 需要 API Key 吗?

公开资料标注的认证方式是API Key,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

toolcast (Djsand) 支持哪些客户端?

公开资料标注支持 Claude、Cursor;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP