
I built a tool that turns any CLI into an MCP server in one command
MCP (Model Context Protocol) is exploding right now. Everyone wants to give Claude more tools. But every MCP server I've seen requires writing boilerplate, setting up a server, figuring out the protocol, and manually editing config files. I got tired of it. So I built mcp-x . pip install mcp-x mcp-x run git That's it. Claude can now use git. What's actually happening When you run mcp-x run git , here's what happens in about 2 seconds: Runs git --help and parses every subcommand and description Converts them into proper MCP tool schemas Starts an SSE MCP server on a free local port Automatically writes to ~/.claude.json : { "mcpServers" : { "mcp-x-git" : { "url" : "http://localhost:8742" , "type" : "sse" } } } Claude Code picks it up immediately. No restart. No manual config. When you Ctrl+C, the entry is removed cleanly. It works on REST APIs too Point it at any OpenAPI spec: mcp-x run https://api.stripe.com/openapi.json # → Claude can now call Stripe endpoints directly Or a local file
Continue reading on Dev.to Python
Opens in a new tab


