Swagger MCP Server
Generates Angular API call code for endpoints from Spring Boot backend Swagger documentation.
Generates React API call code for endpoints from Spring Boot backend Swagger documentation.
Provides access to Spring Boot backend APIs through Swagger documentation, enabling endpoint listing, description, and frontend code generation.
Provides access to Swagger/OpenAPI documentation of Spring Boot backend, allowing listing and describing API endpoints.
Click on "Deploy 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., "@Swagger MCP Server List all available API endpoints"
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.
Swagger MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to Spring Boot backend APIs through Swagger/OpenAPI documentation.
Features
List Endpoints: Get all available API endpoints from your Spring Boot backend
Describe Endpoint: Get detailed information about a specific API endpoint
Generate Frontend Calls: Auto-generate frontend API call code for React or Angular
Related MCP server: mcp-swagger
Installation
Global Installation (Recommended)
npm install -g @pradeepmajji702/swagger-mcpLocal Installation
npm install @pradeepmajji702/swagger-mcpConfiguration
For Claude Desktop / Copilot
Add this to your MCP settings configuration file:
Windows: %APPDATA%\Code\User\globalStorage\github.copilot-chat\mcp.json
macOS/Linux: ~/.config/Code/User/globalStorage/github.copilot-chat/mcp.json
{
"mcpServers": {
"swagger-mcp": {
"command": "npx",
"args": ["-y", "@pradeepmajji702/swagger-mcp"],
"env": {
"SWAGGER_URL": "http://localhost:8080/v3/api-docs"
}
}
}
}Important: Replace SWAGGER_URL with your actual Spring Boot Swagger documentation URL.
Common Swagger URLs
Spring Boot 3:
http://localhost:8080/v3/api-docsSpring Boot 2:
http://localhost:8080/v2/api-docsCustom path:
http://localhost:8080/your-app/v3/api-docs
Usage
Once configured, you can ask your AI assistant:
"List all available backend endpoints"
"Describe the GET /api/users endpoint"
"Generate a React API call for POST /api/users"
"Show me the Angular code to call the login endpoint"
Available Tools
list_endpoints
Lists all API endpoints from your Spring Boot backend.
describe_endpoint
Get detailed information about a specific endpoint including parameters, request body, and responses.
Parameters:
path(string): The API path (e.g., "/api/users")method(string): HTTP method (e.g., "get", "post", "put", "delete")
generate_frontend_call
Generates frontend code to call a specific API endpoint.
Parameters:
path(string): The API pathmethod(string): HTTP methodframework(string): "react" or "angular"
Requirements
Node.js >= 18.0.0
A running Spring Boot application with Swagger/OpenAPI enabled
Development
# Clone the repository
git clone https://github.com/Pradeepmajji702/MCP_SPRINGBOOT.git
cd MCP_SPRINGBOOT
# Install dependencies
npm install
# Run locally
SWAGGER_URL=http://localhost:8080/v3/api-docs node server.jsPublishing
To publish this package to npm:
Then publish:
npm login
npm publish --access publicLicense
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Available Tools
3 toolsdescribe_endpointC
Get details of a backend API
Inputs: path (required), method (required).
generate_frontend_callC
Generate frontend API call code
Inputs: path (required), method (required), framework (required).
list_endpointsA
List all backend API endpoints
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct action: listing all endpoints, describing a specific endpoint, and generating frontend call code. There is no overlap or ambiguity between the tools.
All tools follow a consistent verb_noun pattern with lowercase and underscores: list_endpoints, describe_endpoint, generate_frontend_call. The naming is uniform and predictable.
Three tools is a well-scoped set for a Swagger server focused on endpoint discovery and code generation. Each tool earns its place, covering the core workflow without unnecessary additions.
The tool set covers endpoint listing, description, and frontend call generation, which addresses the primary use case. Minor gaps exist around importing or updating the API specification, but these are outside the apparent read-oriented focus.
Maintenance
Related MCP Connectors
Publish your API docs so AI assistants can look up endpoints and call your API correctly.
Build Spring Boot applications, ready for coding agents, including best practices.
MCP server for AI access to Swagger by SmartBear.
Find and call verified APIs from any AI assistant, with free trial calls and previewed writes.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to understand and analyze Spring Boot codebases through static analysis, allowing natural language queries about endpoints, classes, dependencies, and architecture without running the application.13MIT
- AlicenseAqualityDmaintenanceExposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.1420 npm2MIT
- FlicenseNot gradedqualityDmaintenanceBrings OpenAPI/Swagger documentation into AI assistants, enabling endpoint discovery, deep inspection, cURL generation, and TypeScript type generation.-
- FlicenseNot gradedqualityDmaintenanceEnables AI to scan and query local OpenAPI/Swagger documentation, listing API groups and endpoints, and generating TypeScript type definitions for specific endpoints.-