GitHub
GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.
Description from the maker (original English)
Local OpenAPI contract and breaking-change checks for AI agents.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"api-guardian": {
"command": "npx",
"args": [
"-y",
"mcp-api-guardian"
]
}
}
}Run this in your terminal
claude mcp add api-guardian -- npx -y mcp-api-guardianPaste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"api-guardian": {
"command": "npx",
"args": [
"-y",
"mcp-api-guardian"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"api-guardian": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-api-guardian"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026
The registry name was verified with the GitHub account petrovicistefan, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.1.2) reached the registry 19 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: GitHub, Desktop Commander, Cloudflare MCP
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Stop your AI agent from breaking your API: OpenAPI contract checks and breaking-change diffs over MCP, fully local.
Local-first guardrails for AI coding agents working with OpenAPI specs: catch contract errors (missing operation IDs, unresolved references, public auth), detect breaking changes (removed operations, new required parameters, changed authentication), and keep API consumers working before you ship.
Zero configuration. No API keys. No network. Runs entirely on your machine via the Model Context Protocol.
Cursor:
Or use the direct protocol link: cursor://anysphere.cursor-deeplink/mcp/install?name=api-guardian&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1jcC1hcGktZ3VhcmRpYW4iXX0=
Claude Code:
claude mcp add api-guardian -- npx -y mcp-api-guardian
Or if installed in the petrovicistefan/mcp-marketplace:
/plugin marketplace add petrovicistefan/mcp-marketplace
Claude Desktop:
Add to claude_desktop_config.json:
{
"mcpServers": { "api-guardian": { "command": "npx", "args": ["-y", "mcp-api-guardian"] } } }
Cursor:
Add to ~/.cursor/mcp.json:
{
"mcpServers": { "api-guardian": { "command": "npx", "args": ["-y", "mcp-api-guardian"] } } }
VS Code / GitHub Copilot:
Or manually create/edit .vscode/mcp.json:
{
"servers": { "api-guardian": { "type": "stdio", "command": "npx", "args": ["-y", "mcp-api-guardian"] } } }
Windsurf:
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": { "api-guardian": { "command": "npx", "args": ["-y", "mcp-api-guardian"] } } }
Zed:
Add to your Zed settings.json:
{
"context_servers": { "api-guardian": { "command": "npx", "args": ["-y", "mcp-api-guardian"] } } }
Direct npx (one-line test):
npx -y mcp-api-guardian
Found this MCP useful? [Star this repository](https://github.com/petrovicistefan/mcp-api-guardian)!
A GitHub star helps other developers discover the project and lets you save it for later. Thanks for supporting open source!
AI coding agents increasingly modify OpenAPI specs as they work on API features, documentation, and integrations. A single agent iteration can:
operationId that generated SDKs rely onAPI Guardian catches these before they break production. It provides two MCP tools your AI agent can call:
Fully local, read-only, zero dependencies. No telemetry, no API keys, no network calls.
API Guardian provides 2 MCP tools for validating OpenAPI 3.0.x and 3.1.x documents:
| Tool | Description | Inputs |
|---|---|---|
| `audit_openapi` | Static OpenAPI 3.0/3.1 lint and authentication declaration review. Does not call endpoints. | spec (object): OpenAPI document as JSON |
| `compare_openapi` | Find selected breaking changes between two OpenAPI documents; not exhaustive schema compatibility. | before (object): Original OpenAPI document after (object): Updated OpenAPI document |
audit_openapi({spec})Static contract checks on a single OpenAPI spec:
$ref references, missing info.title/info.version, invalid pathsoperationId, missing response definitions{param} placeholders must be declared as required path parameters$ref URLs (not fetched)Reports errors and warnings with severity, location, and actionable messages. Explicitly states coverage limits.
compare_openapi({before, after})Breaking-change detection between two OpenAPI spec versions:
Reports definite breaks (error) and potential compatibility issues (warning). Schema variance and composed schemas are not yet analyzed (see Limitations).
Prompt: "Audit the OpenAPI spec at api/openapi.json before I commit"
Your AI agent calls audit_openapi, catches a missing operation ID, and suggests a fix — before the PR.
Prompt: "Compare the OpenAPI spec on this branch to main and fail if there are breaking changes"
Your agent runs compare_openapi, detects a removed endpoint, and blocks the merge with an actionable report.
Prompt: "Check all OpenAPI specs in api/ for public endpoints without authentication"
Your agent audits each spec, flags public operations, and generates a security review checklist.
| Feature | MCP API Guardian | oasdiff | pb33f/openapi-changes | optic (archived) |
|---|---|---|---|---|
| MCP integration | ✅ Native MCP server | ❌ CLI only | ❌ CLI only | ❌ CLI only |
| AI agent friendly | ✅ JSON-RPC stdio, designed for agents | ⚠️ CLI output parsing | ⚠️ CLI output parsing | ⚠️ Archived |
| Fully local (no network) | ✅ Zero network calls | ✅ Offline | ✅ Offline | ⚠️ Cloud offering existed |
| Breaking-change detection | ✅ Core feature | ✅ Comprehensive (773 checks) | ✅ Comprehensive | ✅ (legacy) |
| Static contract linting | ✅ Core feature | ⚠️ Validation only | ⚠️ Change-focused | ⚠️ Traffic-focused |
| Git revision comparison | ❌ Planned | ✅ Built-in | ✅ Built-in | ✅ (legacy) |
| Schema compatibility | ❌ Planned | ✅ Full | ✅ Full | ✅ (legacy) |
| HTML/Markdown reports | ❌ JSON only | ✅ Multiple formats | ✅ Multiple formats | ✅ (legacy) |
| License | MIT | Apache 2.0 | GPL-3.0 / Commercial | MIT (archived) |
When to use API Guardian:
When to use alternatives:
API Guardian is a targeted linter, not a complete OpenAPI validator. Current limitations:
oneOf/anyOf/allOf composed schemas, and property-level breaking changes require a later releasecompare_openapiPublic endpoints may be intentional; warnings are not proof of a vulnerability. Reports explicitly state coverage limits.
git clone https://github.com/petrovicistefan/mcp-api-guardian.git
cd mcp-api-guardian npm test npm start
Add to an MCP client's configuration, replacing the absolute path:
{
"mcpServers": { "api-guardian": { "command": "node", "args": ["/absolute/path/mcp-api-guardian/src/server.js"] } } }
Requirements: Node.js 22+
Future releases will add:
oneOf/anyOf/allOf), request vs response variance$ref references with configurable allowlistsThe local stdio MCP server above stays fully useful without an account or network. Quotas are enforced only by a separate hosted HTTP process that reserves units on mcp-control-plane before running the same analysis core.
# Terminal 1 — control plane (see its README for ADMIN_TOKEN)
node --env-file=.env src/server.js # in mcp-control-plane
cp .env.example .env # set CONTROL_PLANE_URL npm run start:hosted
Bootstrap a customer key with the control-plane admin API (POST /v1/admin/accounts, POST /v1/admin/keys). Then:
| Method | Path | Body |
|---|---|---|
| GET | /health | Liveness |
| POST |
Only the beginning is shown; read the rest in the repo