apidrifter
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
API Drifter
Finds where your API drifted from its spec. An open-source CLI and MCP server that runs an OpenAPI document against a live implementation and reports every mismatch with two fixes: one if the spec is the source of truth, one if the implementation is. The same engine diffs spec versions and MCP servers.
Website and research: https://apidrifter.com
Try it in a minute
# Verify a running API against its spec. Values come from the spec's examples.
npx apidrifter run openapi.yaml --base-url http://localhost:3000
# See what the engine wants to send, fill the gaps, run again
npx apidrifter plan openapi.yaml --out plan.json
npx apidrifter run openapi.yaml --base-url http://localhost:3000 --plan filled.json
# Fail CI on breaking changes between two spec versions
npx apidrifter breaking old.yaml new.yaml
# Snapshot and diff an MCP server, including tool description changes
npx apidrifter mcp snapshot https://mcp.example.com/mcp --out before.json
npx apidrifter mcp diff before.json https://mcp.example.com/mcpExit code 1 means findings at or above the threshold (--fail-on breaking by default). Output is JSON when piped, text in a terminal, Markdown with --format markdown.
Related MCP server: @abhishekkumar00019/swagger-mcp
Use it from an agent
apidrifter serve exposes the same capabilities as an MCP server over stdio: plan_requests, run_requests, verify_observations, diff_specs, breaking_changes, changelog, mcp_snapshot, mcp_diff, list_rules.
Claude Code:
claude mcp add apidrifter -- npx -y apidrifter serveCursor, Windsurf, or any client that takes a JSON config:
{
"mcpServers": {
"apidrifter": { "command": "npx", "args": ["-y", "apidrifter", "serve"] }
}
}Then ask the agent to plan requests for a spec, fill the values it cannot infer, run them against your dev server, and fix whichever side is wrong.
Use it from your agent
The Claude Code plugin adds the MCP server and a skill that runs the check whenever the agent adds or changes an endpoint or edits an OpenAPI document: /plugin marketplace add apidrifter/apidrifter, then /plugin install apidrifter@apidrifter. For Cursor rules, a paragraph to paste into CLAUDE.md or AGENTS.md, Codex and other MCP clients, and what each MCP tool does, see docs/agents.md.
Markdown reports end with a Found with apidrifter line so a report pasted into a pull request says how it was produced; --no-footer or "footer": false in the config file turns it off.
What it checks
Verification: undocumented statuses and media types, missing required fields, wrong types, forbidden or undocumented fields, disallowed nulls, enum and constraint violations, requests the spec allows but the server rejects, and requests the spec forbids but the server accepts. 26 finding rules.
Spec diff: 357 change rules, polarity-aware. A property becoming required is breaking in a request and harmless in a response; the engine knows which side it is looking at.
MCP: tools, resources, prompts and server instructions, with description changes tracked because descriptions are what agents act on, and a heuristic flag for descriptions that look aimed at the agent rather than the user.
Full lists: rules reference.
Research
We checked 13 public APIs against their own OpenAPI documents, read-only. 9 of 13 returned successful responses a generated client would break on; 171 distinct schema locations. Every request and finding is reproducible: the write-up, the data, the runner.
Packages
Package | What |
The CLI and MCP server. | |
The engine: pure, deterministic, no I/O. Use it as a library. | |
A composite GitHub Action wrapping |
Design and contributing
How it is built and why, including the security model: docs/DESIGN.md. Contributions: CONTRIBUTING.md. Security reports: SECURITY.md.
License
Apache-2.0. See LICENSE. The name and logo are trademarks; see TRADEMARK.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server (stdio): lint OpenAPI specs with Spectral via the AgentForge API
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes OpenAPI specifications as MCP tools, enabling AI assistants to explore and understand API structures, endpoints, schemas, and documentation through semantic queries.19 npmMIT
- AlicenseNot gradedqualityCmaintenanceDynamically converts any Swagger 2.0 or OpenAPI 3.x specification into callable MCP tools, enabling AI clients to interact with API endpoints.339 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables turning existing REST APIs into governed, agent-callable MCP servers by analyzing OpenAPI schemas, generating tool definitions, and gating releases behind automated evals.-
- AlicenseNot gradedqualityBmaintenanceEnables users to turn any OpenAPI 3.x spec into callable MCP tools at runtime, letting agents inspect and invoke API operations directly from JSON or YAML specifications without code generation or build steps.8 npm1MIT