Metadata-Version: 2.4
Name: api-to-mcp-converter
Version: 0.1.0
Summary: Convert any REST API (OpenAPI/Swagger) into MCP-compatible tools instantly
Project-URL: Homepage, https://github.com/AiAgentKarl/api-to-mcp-converter
Project-URL: Repository, https://github.com/AiAgentKarl/api-to-mcp-converter
Author: AiAgentKarl
License: MIT
Keywords: ai-agents,api,converter,mcp,openapi,rest,swagger
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyyaml>=6.0
Description-Content-Type: text/markdown

# 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"
```

## License

MIT
