Gud API MCP Server

Gud API MCP Server

Enables AI agents to create, run, and save API requests and collections as local Gud API files, which are git-committable and viewable in VS Code-compatible editors.

Category
访问服务器

README

@gudlab/gud-api-mcp — Gud API for AI agents

A Model Context Protocol server that lets any MCP-capable AI agent — Claude Code, Cursor, Windsurf, Codex, Cline, Zed, and others — create, run, and save API requests and collections as real Gud API files your team can open in any VS Code-compatible editor.

When an agent builds an endpoint, it registers the request, runs it, and captures the response as an example. The collection is written to your project's .gud-api/ folder — the same files the Gud API extension reads. Open your editor and every endpoint the agent built is in your sidebar, ready to click and re-run. It's git-committable, so it travels with the PR.

Neither Postman nor Bruno occupies this lane: agent-written, editor-native, git-friendly, no cloud account.

Works with

  • MCP clients (this server): Claude Code, Cursor, Windsurf, Codex, Cline, Zed, Continue — any tool that speaks the Model Context Protocol.
  • Editors (the companion Gud API extension that reads the files): VS Code, plus any VS Code-compatible editor that installs from Open VSX — Cursor, Windsurf, VSCodium, Antigravity, Trae, and more.

The server itself is editor-agnostic — it just writes files. You don't need the extension to use it, but the extension is what makes the collections clickable.

Install

The server runs via npx — no global install needed. It's the same config for every MCP client; only the file it lives in differs.

Add this to your client's MCP config (.mcp.json for Claude Code, ~/.cursor/mcp.json for Cursor, the Windsurf/Codex/Cline equivalent, etc.):

{
  "mcpServers": {
    "gud-api": {
      "command": "npx",
      "args": ["-y", "@gudlab/gud-api-mcp", "--project", "."]
    }
  }
}

--project . scopes all reads/writes to the current project's .gud-api/ folder. Pass an absolute path to target a different project.

What the agent can do

Tool Purpose
list_collections List collections with request counts and folders
get_collection Full contents of one collection (bodies + example summaries)
create_collection Create a collection in .gud-api/collections
upsert_request Create/update a request (matched by name), nest under a folder path
send_request Execute a request, resolve {{variables}}, run tests, optionally capture an example
delete_request Remove a saved request
upsert_environment Create/update a named variable set (base_url, tokens), optionally set active
get_active_environment Read active variables — secret-looking values are masked

How it fits the Gud API format

Files are written byte-compatible with the extension (v0.5.7+): slug filenames (payments-api.json), canonical key order, schemaVersion, trailing newline. The MCP server targets workspace scope — files live in your project and are never cloud-synced, so agent output stays local and reviewable.

Captured responses are stored as examples[] on each request (max 5). The extension renders these read-only so you can see exactly what the API returned when the agent tested it.

Security notes

  • send_request executes arbitrary HTTP — no more than the curl access an agent already has, but be aware of it.
  • Secret masking: get_active_environment masks values whose keys look like secrets (token, key, secret, password, …). send_request still resolves the real values server-side, so the agent can use a credential without reading it into its context. This is heuristic, not a guarantee — don't put production credentials in an agent-visible environment.
  • Cookies are in-memory per session — an agent never inherits your browser session cookies.
  • Writes are confined to --project — collection/environment names are slugified, so a name can't traverse out of the .gud-api/ folder.

Links

License

Proprietary — see the LICENSE file. Free to install and use; redistribution and modification are restricted.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选