Curl2mcp
FreeNot checkedTurns any curl command into an MCP tool server by extracting placeholders and serving the request over stdio.
About
Turns any curl command into an MCP tool server by extracting placeholders and serving the request over stdio.
README
curl2mcp
Turn any curl command into a Model Context Protocol tool server in seconds.

🎯 Why?
MCP adoption is exploding, but connecting a random REST endpoint still means writing a server, schema, and request glue. curl is the universal language for HTTP requests, yet there is no tiny zero-config adapter that converts a curl command into an MCP tool. curl2mcp fills that gap by parsing {placeholders} and serving the request over stdio.
Target audience: AI tool builders, Claude/Cursor users, platform engineers, and agent developers who need to expose HTTP APIs to MCP clients without writing boilerplate.
✨ Features
- ✨ Parse a curl command into an MCP tool schema with placeholder extraction
- ✨ Run the templated request directly from the CLI for quick testing
- ✨ Serve the tool over MCP stdio for Claude, Cursor, or any MCP client
- ✨ Zero external runtime dependencies beyond the Python standard library
🚀 Quick Start
# Install
pip install curl2mcp
# Run
curl2mcp --help
📦 Installation
From Source
git clone https://github.com/YOUR_USERNAME/curl2mcp.git
cd curl2mcp
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest -v
🎬 Demo
The GIF above was recorded using Charm VHS:
vhs < demo.tape
📖 Usage
# Show help
curl2mcp --help
# Common usage examples
curl2mcp --example
🏗️ Architecture
graph LR
A[Input] --> B[Core Engine]
B --> C[Output]
B --> D[Plugins]
D --> E[Extensions]
🤝 Contributing
Contributions are welcome! Please:
- Fork the repo
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
MIT © 2026 — See LICENSE for details.
If this project helped you, please ⭐ star it!
Installing Curl2mcp
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/yulinlina/curl2mcpFAQ
Is Curl2mcp MCP free?
Yes, Curl2mcp MCP is free — one-click install via Unyly at no cost.
Does Curl2mcp need an API key?
No, Curl2mcp runs without API keys or environment variables.
Is Curl2mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Curl2mcp in Claude Desktop, Claude Code or Cursor?
Open Curl2mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Curl2mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
