Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI assistants to interact with Spring Boot backend APIs through Swagger/OpenAPI documentation, allowing listing, describing, and generating frontend code for endpoints.

README.md

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 path
  • method (string): HTTP method
  • framework (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.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.