docfy-mcp
Provides tools for querying NestJS API endpoints documented with docfy, enabling AI agents to list and retrieve details of API endpoints without a browser.
Allows querying any OpenAPI 3.0/3.1 specification to list endpoints and get detailed endpoint documentation for use in code generation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docfy-mcplist endpoints for user management"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
docfy-mcp
Servidor MCP (stdio) que expõe um catálogo OpenAPI — de preferência um já
documentado com nestjs-docfy, mas funciona com qualquer
spec OpenAPI 3.0/3.1 válida — como tools pra agentes de código (Claude Code,
Cursor etc.) consultarem durante a implementação de um client, sem abrir o
navegador.
Tools
list_endpoints— lista todos os endpoints (method + path + summary). Aceitafilteropcional (substring case-insensitive em path/summary/tags).get_endpoint— recebemethod+path, devolve o texto completo no formato "Copy for AI" (Purpose, Request, Parameters, Validation, Success Response, Error Responses).
Related MCP server: cod-api MCP Server
Uso
Publicado no npm — não precisa clonar nem buildar:
# a partir de um arquivo estático
npx docfy-mcp --spec ./openapi.json
# a partir de um servidor NestJS rodando localmente
npx docfy-mcp --url http://localhost:3000/docs-json
--urlfaz o fetch da spec diretamente (não delega ao resolver HTTP do swagger-parser), justamente para funcionar contralocalhost— osafeUrlResolverdo swagger-parser bloqueia URLs locais/privadas por padrão (proteção SSRF), o que quebraria o caso de uso mais comum daqui: apontar pro dev server NestJS local.
O path do JSON não é convenção fixa — depende do que o projeto passou pra
SwaggerModule.setup() (/api-json, /docs-json, /swagger-json...). Se
--url der 404, o docfy-mcp sonda os paths mais comuns na mesma origem e
sugere qualquer um que pareça um documento OpenAPI de verdade.
Pra specs atrás de auth, repita --header quantas vezes precisar:
npx docfy-mcp --url https://api.exemplo.com/api-json --header "Authorization: Bearer xyz"Pra desenvolver neste repo: npm install && npm run build, depois
node dist/cli.js --spec/--url ... (ou npm run dev via tsx).
Registrar como MCP server local (Claude Code / Cursor)
Adicione um .mcp.json na raiz do projeto onde o client MCP vai rodar:
{
"mcpServers": {
"docfy": {
"command": "npx",
"args": ["-y", "docfy-mcp", "--url", "http://localhost:3000/docs-json"]
}
}
}Reinicie o client MCP; as tools list_endpoints e get_endpoint devem
aparecer na lista de tools disponíveis.
Escopo do fim de semana
Fora do escopo por ora (ver docfy-mcp-planejamento.md na raiz do
container): CI/lint completo, transporte HTTP/SSE, search_endpoints
(busca semântica), autenticação/spec atrás de login.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceExposes OpenAPI specifications as MCP tools, enabling AI assistants to explore and understand API structures, endpoints, schemas, and documentation through semantic queries.Last updated24MIT

cod-api MCP Serverofficial
Flicense-qualityDmaintenanceExposes REST API endpoints defined in an OpenAPI Specification as MCP tools, allowing AI models to call them via the ModelContext Protocol.Last updated- Alicense-qualityCmaintenanceExposes any OpenAPI spec endpoints as AI agent tools via stdio, requiring no code generation or maintenance.Last updated18MIT
- Alicense-qualityCmaintenanceExposes OpenAPI endpoints as MCP tools, enabling LLMs to discover and interact with REST APIs through the MCP protocol.Last updated29MIT
Related MCP Connectors
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Stripe-native marketplace where AI agents discover and pay per call for API services.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarvinRF/docfy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server