Labsco
danishjsheikh logo

Swagger MCP

โ˜… 80

from danishjsheikh

Scrapes Swagger UI to dynamically generate MCP tools at runtime using LLMs.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

swagger-mcp

Certified by MCP Review

Overview

swagger-mcp is a tool designed to scrape Swagger UI by extracting the swagger.json file and dynamically generating well-defined mcp tools at runtime. These tools can be utilized by the MCP client for further tool selection.

๐Ÿ“ฝ๏ธ Demo Video

Check out demo video showcasing the project in action:
Watch the Demo

๐Ÿ™Œ Support

If you find this project valuable, please support me on LinkedIn by:

  • ๐Ÿ‘ Liking and sharing our demo post
  • ๐Ÿ’ฌ Leaving your thoughts and feedback in the comments
  • ๐Ÿ”— Connecting with me for future updates

Your support on LinkedIn will help me reach more people and improve the project!

Demo Flow

  1. Some Backend:

    Copy & paste โ€” that's it
    go install github.com/danishjsheikh/go-backend-demo@latest 
    go-backend-demo
  2. Ollama

    Copy & paste โ€” that's it
    ollama run llama3.2
  3. MCP Client

    Copy & paste โ€” that's it
    go install github.com/mark3labs/mcphost@latest
    mcphost -m ollama:llama3.2 --config <.mcp.json_file_path>

Flow Diagram

Flow Diagram

๐Ÿ› ๏ธ Need Help

I am working on improving tool definitions to enhance:
โœ… Better error handling for more accurate responses
โœ… LLM behavior control to ensure it relies only on API responses and does not use its own memory
โœ… Preventing hallucinations and random data generation by enforcing strict data retrieval from APIs

If you have insights or suggestions on improving these aspects, please contribute by:

  • Sharing your experience with similar implementations
  • Suggesting modifications to tool definitions
  • Providing feedback on current limitations

Your input will be invaluable in making this tool more reliable and effective! ๐Ÿš€