Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Turn any OpenAPI 3 spec into a working MCP server. One file, local (stdio) or remote (HTTP).
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"openapi": {
"command": "npx",
"args": [
"-y",
"@asthanaji/openapi-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add openapi -- npx -y @asthanaji/openapi-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"openapi": {
"command": "npx",
"args": [
"-y",
"@asthanaji/openapi-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"openapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@asthanaji/openapi-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Asthanaji05 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于26天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Microsoft Exchange Online MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Exchange Online admin for MSPs: forwarding audits, EWS posture and offboarding, no PowerShell
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Turn any OpenAPI 3 spec into a working MCP server. One file, about 130 lines, no dependencies.
node openapi-mcp.mjs https://your-api.com/openapi.json
Every API endpoint becomes a tool that an AI client (Claude, Cursor, etc.) can call. There is no code generation and no per-endpoint files. The spec is read at startup, and the tools are built in memory.
Requires Node 18 or newer.
git clone <this-repo>
cd openapi-mcp node openapi-mcp.mjs sample/animechan.openapi.json
It prints openapi-mcp: 4 tools from "Animechan" -> ... and then waits silently for an MCP client. That is normal: it talks JSON-RPC over stdin/stdout and is not meant to be read by humans.
Add this to ~/Library/Application Support/Claude/claude_desktop_config.json, then restart the app:
{
"mcpServers": { "animechan": { "command": "node", "args": ["/full/path/openapi-mcp.mjs", "/full/path/animechan.openapi.json"] } } }
If the client can't find node, use the full path from which node.
Start the server, then register it:
MCP_AUTH_TOKEN=secret node openapi-mcp.mjs sample/animechan.openapi.json --http 8787
claude mcp add --transport http animechan http://localhost:8787/mcp \ --header "Authorization: Bearer secret"
Then ask in plain English: "give me a random quote from Naruto".
| Mode | Command | Use when |
|---|---|---|
| Local (stdio) | node openapi-mcp.mjs | The client launches the server on your machine |
| Remote (HTTP) | node openapi-mcp.mjs --http | The client connects to a URL, or you want to self-host |
In HTTP mode, clients send JSON-RPC messages as POST http://host: /mcp. Put --http last.
Test it by hand:
curl -X POST localhost:8787/mcp -H 'Authorization: Bearer secret' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
node openapi-mcp.mjs <spec-url-or-file> [base-url] [--http <port>]
| Argument / env var | What it does | |
|---|---|---|
| OpenAPI 3 spec, as a URL or a local file (JSON; YAML needs npm i yaml) | |
[base-url] | Overrides the API address. Defaults to servers[0].url in the spec | |
API_TOKEN | Your secret for the API. The spec's securitySchemes decide where it goes (see Authentication) | |
OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET | OAuth2 client-credentials: the token is fetched and refreshed automatically | |
OAUTH_REFRESH_TOKEN | OAuth2 refresh-token grant (use with the client id and secret) | |
OAUTH_TOKEN_URL, OAUTH_SCOPE | Optional: override the tokenUrl from the spec, or request a scope | |
API_HEADERS | Extra headers sent on every call, for anything the schemes don't cover. Example: '{"X-App-Id":"abc"}' | |
TOOL_FILTER | Regex. Only tools whose name matches are exposed. Example: `'^(get\ | list)'` for read-only |
MCP_AUTH_TOKEN | HTTP mode only. Requires Authorization: Bearer on every request |
Big APIs can have hundreds of endpoints. Too many tools makes the model choose worse, so use TOOL_FILTER to keep the useful ones.
The server reads securitySchemes from the spec and puts your secret in the right place. You only supply the secret as an environment variable:
| Spec says | Set | Sent as |
|---|---|---|
http / bearer | API_TOKEN=tok | Authorization: Bearer tok |
http / basic | API_TOKEN=user:pass | Authorization: Basic |
apiKey in header | API_TOKEN=key | The header named in the spec (e.g. X-Key: key) |
apiKey in query | API_TOKEN=key | The query parameter named in the spec |
apiKey in cookie | API_TOKEN=key | Cookie: name=key |
oauth2 / openIdConnect, you already have an access token | API_TOKEN=token | Authorization: Bearer token |
oauth2, machine-to-machine | OAUTH_CLIENT_ID + OAUTH_CLIENT_SECRET | Token fetched from the tokenUrl, cached, and renewed before it expires |
oauth2, you logged in once elsewhere | the two above + OAUTH_REFRESH_TOKEN | Access tokens renewed from the refresh token |
Example for Claude Desktop:
{
"mcpServers": { "my-api": { "command": "node", "args": ["/full/path/openapi-mcp.mjs", "https://my-api.com/openapi.json"], "env": { "API_TOKEN": "your-secret" } } } }
Notes:
security list is used (or the first one defined). Per-endpoint security overrides are not applied, so the secret is sent on every call.$ref pointers.operationId is the name, summary the description, and parameters plus request body the input schema.HTTP followed by the response body (cut at 50,000 characters).Many small public APIs only have HTML docs. For those, write a small spec by hand (see sample/animechan.openapi.json, 4 tools in about 35 lines), then run it the same way.
MCP_AUTH_TOKEN bearer token). Some remote clients may require these.MCP_AUTH_TOKEN, or anyone who finds the URL can use your API key.Issues and pull requests are welcome. The goal is to stay small and readable, so please keep new features to a few lines each.