{"id":51489483,"url":"https://github.com/shaxzodbek-uzb/create-mcp","last_synced_at":"2026-07-07T10:03:11.780Z","repository":{"id":366109389,"uuid":"1275084951","full_name":"shaxzodbek-uzb/create-mcp","owner":"shaxzodbek-uzb","description":"The create-next-app for production MCP servers — scaffold a typed, tested, auth-ready Python MCP server in one command.","archived":false,"fork":false,"pushed_at":"2026-06-20T09:21:42.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T10:17:13.999Z","etag":null,"topics":["ai","cli","fastapi","fastmcp","mcp","model-context-protocol","oauth","python","scaffold","uv"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaxzodbek-uzb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-20T08:24:13.000Z","updated_at":"2026-06-20T09:21:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shaxzodbek-uzb/create-mcp","commit_stats":null,"previous_names":["shaxzodbek-uzb/create-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shaxzodbek-uzb/create-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxzodbek-uzb%2Fcreate-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxzodbek-uzb%2Fcreate-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxzodbek-uzb%2Fcreate-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxzodbek-uzb%2Fcreate-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaxzodbek-uzb","download_url":"https://codeload.github.com/shaxzodbek-uzb/create-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxzodbek-uzb%2Fcreate-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35223385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","cli","fastapi","fastmcp","mcp","model-context-protocol","oauth","python","scaffold","uv"],"created_at":"2026-07-07T10:03:11.078Z","updated_at":"2026-07-07T10:03:11.760Z","avatar_url":"https://github.com/shaxzodbek-uzb.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# create-mcp\n\n**The `create-next-app` for production MCP servers.**\n\nOne command scaffolds a typed, tested, auth-ready Python [MCP](https://modelcontextprotocol.io) server you can *ship* — not just run.\n\n[![CI](https://github.com/shaxzodbek-uzb/create-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/shaxzodbek-uzb/create-mcp/actions/workflows/ci.yml)\n[![PyPI](https://img.shields.io/pypi/v/create-mcp.svg)](https://pypi.org/project/create-mcp/)\n[![Python](https://img.shields.io/pypi/pyversions/create-mcp.svg)](https://pypi.org/project/create-mcp/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n\u003c/div\u003e\n\n```bash\nuvx create-mcp my-server\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/demo.svg\" alt=\"create-mcp — scaffold a production MCP server in one command, with tests green out of the box\" width=\"760\"\u003e\n\u003c/p\u003e\n\n## Why\n\nThe official MCP SDK quickstart and `create-mcp-server` hand you a single\nhello-world tool and stop. You still have to add tests, typing, linting, CI, a\nDockerfile, config, and — the hard one — spec-compliant **OAuth 2.1**. Most MCP\nservers in the wild are hello-world demos that never reach production.\n\n`create-mcp` generates the *whole* repo, green on the first run:\n\n- ⚡ **`uvx create-mcp` — zero install.** Same ergonomics as `create-next-app`.\n- 🧱 **Production defaults, not a toy.** Tests, CI, Docker, ruff, mypy, pre-commit, `.env`, a real README.\n- 🔐 **OAuth 2.1 in one flag.** `--auth oauth` scaffolds an [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) resource server (Protected Resource Metadata + `401`/`WWW-Authenticate` discovery + JWT validation). Timed for the 2026 MCP authorization spec.\n- 🌊 **Streamable HTTP first.** The modern transport (SSE is deprecated), plus a stdio preset for Claude Desktop / Cursor.\n- 🧪 **Tests pass out of the box.** Generated tests use FastMCP's in-memory client — no network, milliseconds.\n- 🎯 **Presets, not questionnaires.** Scaffold a *use case*: `minimal`, `api-wrapper`, `db`, `agent-tools`.\n- 🐍 **Typed end-to-end.** Pydantic models for tool I/O; ruff- and mypy-clean.\n\nBuilt on [FastMCP](https://gofastmcp.com) + [`uv`](https://docs.astral.sh/uv/).\n\n## Usage\n\n```bash\n# Interactive\nuvx create-mcp\n\n# Scripted / non-interactive\nuvx create-mcp pay-tools --preset api-wrapper --auth oauth --yes\n```\n\nThen:\n\n```bash\ncd pay-tools\nuv sync\nuv run pay_tools     # start the server\nuv run pytest        # green ✓\n```\n\n### Options\n\n| Flag | Values | Default | Description |\n|------|--------|---------|-------------|\n| `--preset` `-p` | `minimal`, `api-wrapper`, `db`, `agent-tools` | `minimal` | Starting set of tools/resources/prompts |\n| `--transport` `-t` | `streamable-http`, `stdio` | `streamable-http` | MCP transport |\n| `--auth` `-a` | `none`, `oauth` | `none` | OAuth 2.1 resource server (RFC 9728) |\n| `--package-name` | identifier | derived | Override the Python package name |\n| `--output-dir` `-o` | path | `.` | Where to create the project |\n| `--no-git` / `--git` | | `--git` | Initialise a git repo + first commit |\n| `--no-install` / `--install` | | `--install` | Run `uv sync` after scaffolding |\n| `--no-precommit` / `--precommit` | | `--precommit` | Install pre-commit hooks |\n| `--force` | | off | Overwrite a non-empty target directory |\n| `--yes` `-y` | | off | Accept all defaults; never prompt (CI) |\n\n### Presets\n\n| Preset | What you get |\n|--------|--------------|\n| **minimal** | A clean typed server: one tool (structured output), a resource, a prompt. |\n| **api-wrapper** | Wrap an HTTP/JSON API as MCP tools, with the network call isolated for easy mocking. |\n| **db** | A SQLite-backed store exposed as CRUD tools (swap in your real DB). |\n| **agent-tools** | A toolbox for agents: safe calculator, scratchpad memory, clock. |\n\n## What the generated project looks like\n\n```\nmy-server/\n├── src/my_server/\n│   ├── server.py      # FastMCP instance (+ /health, + auth when enabled)\n│   ├── tools.py       # your tools, resources, prompts\n│   ├── settings.py    # typed config (pydantic-settings)\n│   ├── app.py         # FastAPI host mounting MCP at /mcp\n│   ├── auth.py        # OAuth 2.1 resource server  (only with --auth oauth)\n│   └── __main__.py    # `uv run my_server`\n├── tests/             # in-memory tests, green out of the box\n├── Dockerfile         # uv-based image\n├── .github/workflows/ci.yml\n├── .pre-commit-config.yaml\n├── .env.example\n└── pyproject.toml\n```\n\n## Requirements\n\n- [`uv`](https://docs.astral.sh/uv/) (for `uvx` and the generated projects)\n- Python 3.11+\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). Every release runs the full matrix —\ngenerating a project for **each preset × auth mode**, then installing, linting,\ntype-checking and testing it — so the templates can't rot silently.\n\n## License\n\nMIT © Shaxzodbek Qambaraliyev / [Blaze](https://blaze.uz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxzodbek-uzb%2Fcreate-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaxzodbek-uzb%2Fcreate-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxzodbek-uzb%2Fcreate-mcp/lists"}