Python CLI Tool for Generating MCP Servers from API Specs

Created By
jmcentirea year ago
Generates an MCP server using Anthropic's SDK given input as OpenAPI or GraphQL specs.
Overview

What is MCP?

MCP is a Python CLI tool designed to generate Model Context Protocol (MCP) servers from API specifications such as OpenAPI or GraphQL. It automates the creation of a fully functional server project that adheres to best practices and integrates with Anthropic's MCP SDK.

How to use MCP?

To use MCP, provide an API specification file (in YAML or JSON for OpenAPI or SDL/IDL for GraphQL) and a JSON configuration file that defines generation options. Run the CLI tool, and it will generate the server project in the specified programming language (Python, TypeScript, Kotlin, or Rust).

Key features of MCP?

  • Accepts OpenAPI or GraphQL specifications and auto-detects the type.
  • Generates an MCP server in the user-specified language with cleanly structured output.
  • Implements configurable authentication middleware and privacy/security measures.
  • Provides a structured README for installation, usage, and customization.

Use cases of MCP?

  1. Quickly exposing data or services through an MCP server.
  2. Automating the creation of server projects for various programming languages.
  3. Ensuring compliance with security and privacy standards in API development.

FAQ from MCP?

  • Can MCP generate servers for all programming languages?

Currently, MCP supports Python, TypeScript, Kotlin, and Rust.

  • Is MCP free to use?

Yes! MCP is open-source and free to use.

  • How does MCP handle security and privacy?

MCP includes options for authentication, data redaction, and secure headers to ensure compliance with best practices.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
jmcentire
Star
0
Language
-
License
MIT license

Recommend Servers

View All
//beforeyouship — LLM Cost Modeling From Your Editor
@Indiegoing

Query realistic LLM cost models without leaving your editor. beforeyouship models the **true monthly cost** of an LLM app architecture — retries, prompt caching, batch discounts, infra overhead, and 3×/10× growth — across GPT-5.x, Claude, Gemini, DeepSeek, and more. Not a token calculator: a planning tool for the design phase, before you commit to a stack. **No API key needed to try it** — demo mode covers the six free-tier models. A Pro key from [beforeyouship.dev](https://beforeyouship.dev) unlocks the full 18-model catalog. ## What you can ask - "How much will a RAG chatbot cost at 10,000 requests/day?" - "Compare Claude Haiku vs Gemini Flash pricing for my workload" - "What's the cheapest model for a multi-step agent at scale?" - "Show me current per-token prices for Anthropic models" ## Tools ### `estimate_cost` Full cost model for an architecture at a given usage level. Returns Naive / Realistic / Worst Case monthly cost per model, 3×/10× growth scenarios, and an opinionated recommendation with reasoning. ### `get_model_prices` Current per-1M-token pricing — input, output, cached input, batch — with context windows and staleness metadata. ### `list_archetypes` Seven preset architecture patterns (simple chatbot, chatbot with history, RAG pipeline, multi-model router, coding assistant, document processor, multi-step agent) used as starting points for estimates. ## Setup **Claude Code:** ​```bash claude mcp add --transport http beforeyouship https://beforeyouship.dev/api/mcp ​``` **Cursor / other clients** — add a remote server: ​```json { "mcpServers": { "beforeyouship": { "type": "streamable-http", "url": "https://beforeyouship.dev/api/mcp" } } } ​``` Add an `Authorization: Bearer bys_...` header with a Pro key for the full catalog. ## Try it > Estimate the monthly cost of a RAG pipeline at 10,000 requests/day

19 hours ago