Skip to main content
Glama
AiAgentKarl

API-to-MCP Converter

by AiAgentKarl
README.md
# API-to-MCP Converter 🔄

Convert any REST API into MCP-compatible tools instantly. Provide an OpenAPI/Swagger spec and get ready-to-use MCP tool definitions.

## Why

Every company has REST APIs. AI agents need MCP tools. This bridge converts one into the other automatically — no coding required.

## Features

- **Instant Conversion** — OpenAPI 3.x and Swagger 2.0 support
- **All Methods** — GET, POST, PUT, PATCH, DELETE
- **Parameter Extraction** — Query, path, body parameters auto-detected
- **Persistent Storage** — Converted APIs saved locally for reuse
- **Community Sharing** — Share conversions for others to discover
- **Search** — Find previously converted APIs

## Installation

```bash
pip install api-to-mcp-converter
```

## Usage

```json
{
  "mcpServers": {
    "api-converter": {
      "command": "uvx",
      "args": ["api-to-mcp-converter"]
    }
  }
}
```

## Tools

| Tool | Description |
|------|-------------|
| `convert_api` | Convert an OpenAPI spec URL to MCP tools |
| `list_converted_apis` | List all converted APIs |
| `get_api_tools` | Get MCP tool definitions for an API |
| `search_converted_apis` | Search converted APIs |
| `share_conversion` | Share a conversion with the community |

## Examples

```
"Convert the Petstore API: https://petstore3.swagger.io/api/v3/openapi.json"
"What APIs have I converted?"
"Show me the tools for the petstore API"
```


---

## More MCP Servers by AiAgentKarl

| Category | Servers |
|----------|---------|
| 🔗 Blockchain | [Solana](https://github.com/AiAgentKarl/solana-mcp-server) |
| 🌍 Data | [Weather](https://github.com/AiAgentKarl/weather-mcp-server) · [Germany](https://github.com/AiAgentKarl/germany-mcp-server) · [Agriculture](https://github.com/AiAgentKarl/agriculture-mcp-server) · [Space](https://github.com/AiAgentKarl/space-mcp-server) · [Aviation](https://github.com/AiAgentKarl/aviation-mcp-server) · [EU Companies](https://github.com/AiAgentKarl/eu-company-mcp-server) |
| 🔒 Security | [Cybersecurity](https://github.com/AiAgentKarl/cybersecurity-mcp-server) · [Policy Gateway](https://github.com/AiAgentKarl/agent-policy-gateway-mcp) · [Audit Trail](https://github.com/AiAgentKarl/agent-audit-trail-mcp) |
| 🤖 Agent Infra | [Memory](https://github.com/AiAgentKarl/agent-memory-mcp-server) · [Directory](https://github.com/AiAgentKarl/agent-directory-mcp-server) · [Hub](https://github.com/AiAgentKarl/mcp-appstore-server) · [Reputation](https://github.com/AiAgentKarl/agent-reputation-mcp-server) |
| 🔬 Research | [Academic](https://github.com/AiAgentKarl/crossref-academic-mcp-server) · [LLM Benchmark](https://github.com/AiAgentKarl/llm-benchmark-mcp-server) · [Legal](https://github.com/AiAgentKarl/legal-court-mcp-server) |

[→ Full catalog (40+ servers)](https://github.com/AiAgentKarl)

## License

MIT