json-schema-mcp
This 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.
MCP Docs prvoider
MCP server that indexes documentation files and exposes their definitions as browsable, searchable tools for AI agents.
Why not just read the file?
Large schema and OpenAPI files can be thousands of lines. Dumping them into context wastes tokens and drowns the signal in noise. This server lets the agent explore schemas surgically.
Without this server | With this server | |
Context cost | Entire file loaded into context (thousands of tokens) | Agent fetches only the definitions it needs |
Discovery | Agent must parse raw JSON to find what's available |
|
Search | Manual scanning or regex on raw text | Keyword, glob, and pipe search across all schemas |
OpenAPI | Agent must understand the spec structure to find schemas and operations | Schemas and operations are extracted and indexed automatically |
Multiple sources | Agent reads each file individually | One server merges directories and URLs into a single index |
Related MCP server: mcp-swagger
Features
JSON Schema — indexes standalone
.jsonschema filesOpenAPI — auto-detects OpenAPI 3.x and Swagger 2.0; indexes both component schemas and path operations (e.g.
GET /pets)TypeDoc (JSON) — indexes TypeDoc JSON output files
XmlDoc — indexes .NET XML documentation files
Multiple sources — pass any mix of local directories and HTTP(S) URLs, merged into one index
Glob & pipe search — use
*,?wildcards and|as OR separator
One server, one set of tools, all schemas in one place — no confusion from duplicate tool names across servers.
Tools
Tool | Description |
| List all indexed schema files with format, titles, and definition counts |
| List definition names in a schema (includes OpenAPI operations) |
| Get the full JSON schema of a definition or OpenAPI operation |
| Search definitions by keyword/glob/pipe within a schema |
| Search definitions by keyword/glob/pipe across all schemas |
Search syntax
Pattern | Meaning |
| Substring match (case-insensitive) |
| Glob — matches definitions starting with "GET" |
| Glob — matches definitions ending with "Id" |
| Pipe — matches either "user" or "account" |
| Combined — matches GET or POST operations |
Build
npm install
npm run buildRun
json-schema-mcp [options] <source...>
Each <source> can be a local directory or an HTTP(S) URL.
Multiple sources are merged into a single index.
JSON Schema and OpenAPI (3.x / Swagger 2.0) files are auto-detected.
Options:
-n, --name <name> Server name shown to the agent (default: json-schema-mcp)
-d, --description <text> What these schemas are for (prefixed to tool descriptions)
-h, --help Show helpExamples:
# Single local directory
json-schema-mcp --name "order-api" ./schemas/orders
# Multiple sources: local dirs + remote specs
json-schema-mcp --name "all-apis" \
./schemas/orders \
./schemas/users \
https://petstore3.swagger.io/api/v3/openapi.jsonConfigure with Claude Code
Add to .mcp.json in your project root. One server handles all your schema sources:
{
"mcpServers": {
"schemas": {
"command": "node",
"args": [
"/path/to/dist/index.js",
"--name", "api-schemas",
"--description", "All API schemas (orders, users, petstore)",
"/path/to/schemas/orders",
"/path/to/schemas/users",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}Test
npm testRuns unit tests (indexing, search logic) and integration tests (full MCP protocol over stdio).
Debug
Inspect with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js --name "debug" ./schemasOpens a web UI where you can call each tool interactively.
Node.js debugger
node --inspect-brk dist/index.js --name "debug" ./schemasAttach with Chrome DevTools (chrome://inspect) or VS Code. Since the server communicates over stdio, pipe MCP messages manually or use the inspector as the client.
Verbose logging
The server logs to stderr (e.g. skipped files). Redirect to see diagnostics:
echo '...' | node dist/index.js ./schemas 2>debug.logTool 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
Versioned documentation registry and semantic search for AI tools and coding assistants.
Search @imqueue docs and scaffold typed services & clients from your AI coding agent.
A registry of AI agent tools — MCP servers, APIs, CLIs, SDKs — kept current by automated ingestion.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch, index, and perform semantic RAG-based searches on API documentation from various sources. It provides tools for hybrid search and collection management, allowing users to access up-to-date documentation from projects like Gemini and FastMCP.-
- AlicenseAqualityDmaintenanceExposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.1427 npm2MIT
- FlicenseNot gradedqualityDmaintenanceTurns any OpenAPI/Swagger spec into queryable tools for LLMs, enabling endpoint search, detail retrieval, and schema exploration.1-
- AlicenseNot gradedqualityDmaintenanceProvides fast local full-text search and complete OpenAPI schemas for all Webex Developer APIs, enabling AI agents to accurately discover endpoints, parameters, and required scopes without hallucination or massive token costs.3MIT