Skip to main content

Universal MCP Server Generator - Create MCP servers from any OpenAPI spec

Project description

AuraMCP - Universal MCP Server Generator

Generate MCP (Model Context Protocol) servers from any OpenAPI specification. Connect LLM agents to Slack, GitHub, Notion, Stripe, and 100+ other APIs instantly.

How It Works

AuraMCP is a generator tool that creates standalone MCP server packages:

  1. Install AuraMCP → The generator CLI
  2. Run auramcp generate <provider> → Creates a new Python package (e.g., auramcp_slack)
  3. Install the generated packagepip install -e . in the output folder
  4. Run the MCP serverpython -m auramcp_slack

Each generated server is independent and can be distributed separately.

Features

  • Parse OpenAPI 2.0 & 3.x - Automatically handles both Swagger and OpenAPI specs
  • Generate MCP Servers - Creates complete, runnable Python packages with FastMCP
  • Auth Ready - Pre-configured authentication for popular APIs (OAuth2, API Key, Bearer)
  • CLI & Programmatic - Use from command line or import as a library
  • LLM Enhancement - Optional Claude-powered review and description enhancement

Installation

pip install auramcp

For LLM review features:

pip install auramcp[llm]

Quick Start

1. Generate a Server

# Generate MCP server for Slack
auramcp generate slack --output ./servers

# Generate with LLM review (optional)
auramcp generate notion --review --output ./servers

# List available providers
auramcp list

# Search for APIs
auramcp list --search "email"

# Get provider info
auramcp info github

2. Install and Run the Generated Server

Each generated server is a standalone pip package. After generation:

# Navigate to the generated server
cd servers/slack

# Install the generated package
pip install -e .

# Set the required environment variable (shown after generation)
export SLACK_BOT_TOKEN=xoxb-your-token

# Run the MCP server
python -m auramcp_slack

3. Connect to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "slack": {
      "command": "python",
      "args": ["-m", "auramcp_slack"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-token"
      }
    }
  }
}

Note: The environment variable name depends on the provider and auth type. The CLI will show you the exact variable name after generation.

Programmatic Usage

from auramcp.generator import OpenAPIParser, MCPConverter, MCPCodeGenerator

# Parse an OpenAPI spec
parser = OpenAPIParser()
parsed = parser.parse("https://api.example.com/openapi.json")

# Convert to MCP tools
converter = MCPConverter()
tools = converter.convert(parsed)

# Generate server code
generator = MCPCodeGenerator()
server = generator.generate(
    tools=tools,
    server_name="myapi",
    base_url=parsed.base_url,
    auth_type="bearer",
)

# Write to disk
server.write("./output/myapi")

Supported Providers

Tier 1 (Production Ready)

  • Slack
  • GitHub
  • Notion
  • Stripe
  • Airtable
  • HubSpot
  • Trello
  • Discord

Tier 2 (Auto-generated + Reviewed)

  • Asana, Linear, Jira
  • Zendesk, Intercom
  • Mailchimp, SendGrid, Twilio
  • Shopify, Zoom, Calendly
  • And 30+ more...

Tier 3 (Fully Automated)

  • All 2000+ APIs from APIs.guru

Development

# Clone and install
git clone https://github.com/auramcp/auramcp.git
cd auramcp
pip install -e ".[dev]"

# Run tests
pytest

# Run example
python scripts/generate_example.py

Environment Variables

# For LLM review (optional)
ANTHROPIC_API_KEY=sk-ant-...

# Per-provider credentials (names shown after generation)
SLACK_BOT_TOKEN=xoxb-...          # Slack (OAuth2/Bot token)
GITHUB_TOKEN=ghp_...              # GitHub (Bearer token)
NOTION_TOKEN=secret_...           # Notion (Bearer token)
STRIPE_API_KEY=sk_test_...        # Stripe (API Key)
AIRTABLE_TOKEN=pat...             # Airtable (Bearer token)

Tip: Run auramcp info <provider> to see the required environment variable.

Architecture

auramcp/
├── generator/          # Core generator engine
│   ├── parser.py       # OpenAPI 2.0/3.x parsing
│   ├── converter.py    # OpenAPI → MCP tools
│   ├── codegen.py      # Python code generation
│   └── reviewer.py     # LLM enhancement
├── auth/               # Authentication layer
│   ├── registry.py     # Auth config management
│   ├── handlers.py     # OAuth2, API Key, Bearer
│   └── configs/        # Per-provider YAML configs
├── specs/              # Spec management
│   ├── fetcher.py      # APIs.guru + first-party
│   └── registry.py     # Provider index
└── cli.py              # Command-line interface

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auramcp-0.1.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auramcp-0.1.1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file auramcp-0.1.1.tar.gz.

File metadata

  • Download URL: auramcp-0.1.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for auramcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f723253180f1167f34ee044eda51804df80946dfa8a3f89eb0d9d90ad2e0f736
MD5 ebc5aac6a62ddc38be4ae32ce94f4ca5
BLAKE2b-256 5b8d0f87587c7f4daa0ec3791b05df8d456e3c720558a8f716f5087ab26e6834

See more details on using hashes here.

File details

Details for the file auramcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: auramcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for auramcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32675f12777a2ca52e2d7d82029ca93915f3a0fd2aeb538cf5755e273ade771b
MD5 e85b4231b691fa08d2b3b8e6860cb7aa
BLAKE2b-256 15c4ff499af93846963477faea70491edfee2168fa792daf0c3878cf8ce66f0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page