MCPHy

MCPHy

Transform REST APIs into intelligent, chat-driven MCP servers with zero code changes. Simply point it at your Swagger/OpenAPI specification to get natural language querying capabilities powered by AI.

Category
Visit Server

README

<div align="center">

███╗   ███╗ ██████╗██████╗ ██╗  ██╗██╗   ██╗
████╗ ████║██╔════╝██╔══██╗██║  ██║╚██╗ ██╔╝
██╔████╔██║██║     ██████╔╝███████║ ╚████╔╝
██║╚██╔╝██║██║     ██╔═══╝ ██╔══██║  ╚██╔╝
██║ ╚═╝ ██║╚██████╗██║     ██║  ██║   ██║
╚═╝     ╚═╝ ╚═════╝╚═╝     ╚═╝  ╚═╝   ╚═╝

🚀 Turn Any API into a Conversational AI Powerhouse

Transform your REST APIs into intelligent, chat-driven MCP servers with zero code changes

npm version License: MIT Node Version

🚀 Ready to try? npm install -g mcphy🎯 Quick Start📖 API Docs🎨 Examples⭐ Star


</div>

Requirements

  • Node.js >= 18.0.0
  • npm >= 9.0.0
  • An API specification file (Swagger/OpenAPI)

Installation

# Option 1: Install globally
npm install -g mcphy

# Option 2: Try without installing
npx mcphy --help

Quick Start

# 1. Initialize with your API spec
mcphy init

# 2. Start the conversational server
mcphy serve

# 3. Open your browser
open http://localhost:3000

That's it! Start chatting with your API in plain English.

Try It Now

Want to test MCPhy immediately? Use our included example:

# Clone and test with example API
git clone https://github.com/sehmim/mcphy.git
cd mcphy
npm install
npm run build
npm link

# Test with example
cd examples
mcphy init -f sample-swagger.yaml
mcphy serve

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

Example

You: "create booking for John Doe for oil change for 2025-01-15"

MCPhy: ✅ Matched POST /bookings
       📤 Making API call...
       📋 Response: {"id": "booking-123", "status": "created"}

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
mcphy init Initialize project with API spec
mcphy serve Start the MCP server
mcphy validate <file> Validate API specification
mcphy export Create standalone package

Supported Formats

  • ✅ OpenAPI 3.0+
  • ✅ Swagger 2.0
  • ⏳ Postman Collections (coming soon)

Documentation

Development

git clone https://github.com/sehmim/mcphy.git
cd mcphy
npm install
npm run build
npm link

License

MIT © 2025 MCPhy

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

<div align="center">

Made with ❤️ by developers, for developers

GitHubIssuesNPM

</div>

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured