curl2mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Related MCP server: cli-wrap-mcp
β¨ 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!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Web scraping MCP server: any URL to Markdown or JSON, with JavaScript rendering and batch jobs.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceTurns Markdown files into local MCP servers, enabling users to define and run tools using simple Markdown syntax with zero dependencies.1MIT
- AlicenseNot gradedqualityCmaintenanceTurns any CLI command into an MCP server via a declarative YAML config, enabling safe, typed tool execution with no shell injection.MIT
- AlicenseNot gradedqualityCmaintenanceServes any OpenAPI 3.x/Swagger 2.x API as a local MCP server over stdio, converting every operation into a tool that proxies requests to the upstream API with configurable headers and fixed parameters.10 npm4MIT
- AlicenseNot gradedqualityCmaintenanceEnables turning any command-line tool into an MCP server with auto-generated JSON schema, supporting stdio, timeouts, and stderr capture.MIT