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.
Check out demo video showcasing the project in action:
If you find this project valuable, please support me on LinkedIn by:
Your support on LinkedIn will help me reach more people and improve the project!
To use swagger-mcp
, ensure you have the following dependencies:
Follow these steps to install and run swagger-mcp
:
go install github.com/danishjsheikh/swagger-mcp@latest
swagger-mcp
To integrate with mcphost
, include the following configuration in .mcp.json
:
{
"mcpServers":
{
"swagger_loader": {
"command": "swagger-mcp",
"args": ["--specUrl=<swagger/doc.json_url>"]
}
}
}
Some Backend:
go install github.com/danishjsheikh/go-backend-demo@latest
go-backend-demo
Ollama
ollama run llama3.2
MCP Client
go install github.com/mark3labs/mcphost@latest
mcphost -m ollama:llama3.2 --config <.mcp.json_file_path>
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:
Your input will be invaluable in making this tool more reliable and effective! 🚀
{
"mcpServers": {
"swagger_loader": {
"env": {},
"args": [
"--specUrl=<swagger/doc.json_url>"
],
"command": "swagger-mcp"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.