Optionally uses OpenAI's GPT-4 to enhance API specifications with improved descriptions, parameter documentation, usage examples, and intelligent parsing of API collections.
Supports Postman Collections as input, automatically converting them to OpenAPI-compatible format with intelligent parsing of parameters, headers, body schemas, and base URL extraction.
Supports OpenAPI 3.0+ and Swagger 2.0 specifications as input, with optional AI-powered enhancement for better descriptions, parameter documentation, and usage examples.
🚀 Turn Any API into a Conversational AI Powerhouse
Transform your REST APIs into intelligent, chat-driven MCP servers with zero code changes
🚀 Ready to try? npm install -g mcphy • 🎯 Quick Start • 📖 API Docs • 🎨 Examples • ⭐ Star
Requirements
Node.js >= 18.0.0
npm >= 9.0.0
An API specification file (Swagger/OpenAPI or Postman Collection)
OpenAI API Key (optional, for enhanced AI-powered understanding)
Installation
Quick Start
That's it! Start chatting with your API in plain English.
🚨 Initialization Issues?
If mcphy init fails, here are quick fixes:
❌ No API spec found?
❌ Invalid specification?
❌ File not found?
📖 See
Try It Now
Want to test MCPhy immediately? Use our included example:
Then open http://localhost:3000 and try:
"Show me all pets"
"Create a new pet named Max"
"Get pet with ID 1"
What It Does
🧠 Natural Language Processing - Ask questions in plain English
🔌 Real API Calls - Actually makes requests to your backend
⚠️ Smart Guidance - Helps when information is missing
💬 Web Interface - Beautiful chat UI with real-time responses
📦 Export Ready - Create standalone packages
🤖 Smart Enhancement - Optional AI-powered API understanding 🆕
LLM-Powered - GPT-4 enhances descriptions, parameters, and examples
Pattern-Based Fallback - Smart enhancements even without AI
OpenAPI/Swagger & Postman - Works with all major API formats
Example
Why Developers Love This
Zero Code Changes - Works with existing APIs
Natural Language - No need to remember endpoint names
Real Responses - Actually calls your backend
Smart Guidance - Helps when information is missing
Beautiful UI - Professional chat interface
Easy Export - Create standalone packages
Commands
Command | Description |
| Initialize project with API spec |
| Start the MCP server |
| Validate API specification |
| Create standalone package |
Supported Formats
✅ OpenAPI 3.0+
✅ Swagger 2.0
✅ Postman Collections (with LLM-powered parsing) 🆕
🚀 New: LLM-Powered API Parsing
MCPhy now uses GPT-4 to intelligently understand and enhance all API specifications!
OpenAPI/Swagger Enhancement
📝 Enhanced Descriptions - Generates user-friendly API descriptions
🔍 Better Parameter Docs - Adds context and examples to parameters
💡 Usage Examples - Provides practical endpoint usage guidance
🎯 Smart Summaries - Creates clear, concise operation summaries
🔗 Workflow Discovery - Identifies common API patterns
Postman Collection Support
🤖 Deep Understanding - Analyzes collection structure and intent
📦 Automatic Conversion - Transforms to OpenAPI-compatible format
🔍 Smart Detection - Auto-detects collections in your project
📝 Rich Parsing - Extracts parameters, headers, body schemas
🌐 Base URL Extraction - Finds API base URL from variables
Usage:
💡 OpenAI API Key Benefits (Optional):
🤖 Enhanced Understanding - Powers intelligent API analysis
📝 Rich Descriptions - Generates comprehensive documentation
🔍 Smart Parameter Docs - Adds context-aware explanations
💡 Usage Examples - Provides practical guidance for endpoints
🚀 Works Without It - Basic parsing is fully functional
Documentation
📖 API Reference - Programmatic usage
🎨 Examples - Real-world examples
Development
License
MIT © 2025 MCPhy
Contributing
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
Made with ❤️ by developers, for developers