Skip to main content

openapi2mcp-py

openapi2mcp is a Python CLI that converts an OpenAPI specification into a runnable MCP server project.

Features

  • Generates MCP server projects from OpenAPI specs.
  • Supports multiple target languages.
  • Produces tool definitions from OpenAPI operations.
  • Carries over auth/environment configuration into generated projects.

Supported Targets

  • python - FastMCP-based Python server
  • typescript - MCP TypeScript SDK server
  • csharp - MCP C# SDK server
  • java - official MCP Java SDK server (stdio)
  • java-spring - Spring Boot + Spring AI MCP server

Installation

pip install -e .

Usage

Generate a server project from an OpenAPI file:

python -m openapi2mcp.cli generate tests/fixtures/petstore.yaml --lang python --output ./out-py

List supported languages:

python -m openapi2mcp.cli list-languages

Notes

  • The generated output directories are auto-generated and can be regenerated at any time.
  • Use java when you want the official MCP Java SDK runtime.
  • Use java-spring only when you explicitly want Spring AI integration.

Metadata

Release files for openapi2mcp-py 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openapi2mcp-py 0.3.0
File Size Uploaded Provenance Actions
openapi2mcp_py-0.3.0.tar.gz 30.7 kB With provenance Details for openapi2mcp_py-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openapi2mcp-py 0.3.0
File Interpreter ABI Platform Actions
openapi2mcp_py-0.3.0-py3-none-any.whl Python 3 none any Details for openapi2mcp_py-0.3.0-py3-none-any.whl

Total release size: 81.5 kB

Release files / openapi2mcp_py-0.3.0.tar.gz

Download URL openapi2mcp_py-0.3.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f94dc89af15de5209bea303eb2064d0a45d521d57ec50edeff07a06623d59426
BLAKE2b-256 checksum
How to use checksums
2b796affc1f114baff8f02d38e0f309f3ee742a5028cfba1712748b4be2de28b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release files / openapi2mcp_py-0.3.0-py3-none-any.whl

Download URL openapi2mcp_py-0.3.0-py3-none-any.whl
Size 50.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cd8704055d76d7bba6b55e29bea735690124e91d41e8535114642e45fb9126c
BLAKE2b-256 checksum
How to use checksums
ac995b573cd75ce35f19b2238f4cb21c36612b0445b3b1c7228d2d45a49ae20c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Security for openapi2mcp-py 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openapi2mcp_py-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page