Swagger MCP Server
Enables AI assistants to interact with Spring Boot backend APIs through Swagger/OpenAPI documentation, allowing listing, describing, and generating frontend code for endpoints.
README
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
Installation
Global Installation (Recommended)
npm install -g @pradeepmajji702/swagger-mcp
Local Installation
npm install @pradeepmajji702/swagger-mcp
Configuration
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-docs - Spring Boot 2:
http://localhost:8080/v2/api-docs - Custom 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.js
Publishing
To publish this package to npm:
Then publish:
npm login
npm publish --access public
License
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.