Skip to main content
Glama
mcpify-any-repo

mcpify-any-repo

by pjrpjr

mcpify-any-repo

Turn any public GitHub repository or local codebase into a runnable, zero-dependency Python 3 stdlib MCP Server (server.py) + smithery.yaml + glama.json + bazaar_card.json in one command.

  • Zero runtime dependencies — pure Python 3 standard library only (ast, json, urllib, http.server).

  • Multi-source code analyzer — parses README.md, Python argparse / Click / Typer / typed functions, pyproject.toml, package.json, Makefile, and OpenAPI/Swagger specs (.json & .yaml).

  • Safe by default — compiled servers emit dry-run execution plans unless MCP_ALLOW_EXEC=1 is explicitly enabled, and enforce strict SSRF blocks on loopback/RFC1918/metadata targets.

  • Standalone local mode + live cloud acceleration — runs 100% offline on local directories or connects to clonesaas.fastmesh.dev for hosted cloud compilation.

Quickstart

git clone https://github.com/pjrpjr/mcpify-any-repo.git
cd mcpify-any-repo

# Verify installation offline
python3 mcpify_any_repo.py --self-check

# Compile any public GitHub repo into an MCP bundle
python3 mcpify_any_repo.py https://github.com/encode/httpx -o ./httpx-mcp

# Compile a local repository completely offline
python3 mcpify_any_repo.py ./my-local-repo -o ./my-local-mcp --offline

# Enable live FastMesh cloud acceleration
python3 mcpify_any_repo.py https://github.com/astral-sh/ruff -o ./ruff-mcp --cloud

# Run the generated MCP server immediately
python3 ./my-local-mcp/server.py --self-check
python3 ./my-local-mcp/server.py --stdio

Related MCP server: AI Knowledge Center MCP

Output Artifacts

Every run emits a self-contained bundle ready for Claude Desktop, Cursor, Windsurf, Smithery, Glama, and Causal Bazaar:

File

Purpose

server.py

Runnable zero-dep Python 3 stdlib MCP server (--stdio, --http, --self-check)

smithery.yaml

Smithery registry manifest with typed configSchema

glama.json

Glama MCP directory schema (transport: ["stdio", "streamable-http"])

bazaar_card.json

FastMesh Causal Bazaar listing card with SHA-256 artifact hashes

compile_manifest.json

Compilation summary, tool inventory, and integrity digests

MCP Client Configuration (Claude Desktop / Cursor / Windsurf)

Add mcpify-any-repo itself as an MCP server so your coding agent can compile repositories on demand:

{
  "mcpServers": {
    "mcpify-any-repo": {
      "command": "python3",
      "args": ["/path/to/mcpify-any-repo/mcpify_any_repo.py", "--stdio"],
      "env": {
        "FASTMESH_API_KEY": ""
      }
    }
  }
}

Exposed MCP Tools

  • inspect_repo — Inspect a local repo or GitHub URL and list detected CLI commands, OpenAPI endpoints, and functions.

  • mcpify_repo — Compile target repository into server.py, smithery.yaml, glama.json, and bazaar_card.json.

  • validate_mcp_bundle — Verify AST syntax and JSON/YAML validity of an emitted bundle.

Hosted Cloud Acceleration & FastMesh Prepaid Wallets

Want hosted Streamable HTTP MCP endpoints, 40+ verified-outcome developer APIs, and $0 charge on empty/miss results?

Development & Tests

python3 -m unittest discover -s tests -v

License

MIT — see LICENSE.

Available Tools

3 tools
inspect_repoC

Inspect a local directory or public GitHub repository URL and return discovered CLI commands, OpenAPI endpoints, Python functions, and synthesized MCP tool specs.

Inputs: target (required), cloud, offline.

mcpify_repoB

Compile any public GitHub repo URL or local codebase into a runnable zero-dep Python MCP server (server.py) + smithery.yaml + glama.json + bazaar_card.json.

Inputs: target (required), out_dir (required), cloud, offline.

validate_mcp_bundleC

Validate a compiled MCP bundle directory (server.py AST, smithery.yaml, glama.json, bazaar_card.json).

Inputs: bundle_dir (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 3 tools

    Disambiguation4/5

    Each tool occupies a distinct pipeline stage: inspect (analyze and report), mcpify (compile artifacts), validate (check output). The only mild ambiguity is the overlap between inspect_repo and mcpify_repo, since both consume a repo and inspect_repo already returns 'synthesized MCP tool specs' — an agent could wonder whether mcpify_repo is needed. Descriptions still give enough signal to sequence them correctly.

    Naming Consistency5/5

    All three names follow a clean verb_noun pattern (inspect_repo, mcpify_repo, validate_mcp_bundle) in snake_case, with the noun matching the pipeline concepts (repo vs bundle). No stylistic deviations.

    Tool Count5/5

    Three tools is a tight, purposeful surface for a build-pipeline server: analyze, generate, verify. Nothing feels padded and no obvious operation is crammed into a separate tool.

    Completeness4/5

    The inspect -> mcpify -> validate lifecycle is covered end to end for generating and checking an MCP bundle. Minor gaps remain around post-build operations (e.g. publishing/installing the generated server, listing or re-running validation on an existing bundle, or cleaning up outputs), but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that exposes a verified manifest of a repository's development commands, allowing AI coding agents to instantly learn the correct dev loop without trial-and-error.
      5 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to generate complete, runnable MCP server projects from natural-language tool descriptions, including schema, implementation, tests, README, and license.
      MIT