Coding guidelines and best-practice guides for 130+ languages, frameworks, and tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server that provides access to coding guides and best practices for AI assistants like Claude and GitHub Copilot.
This MCP server exposes coding guidelines and style guides as resources that can be accessed by MCP clients. It's designed to extend or replace AGENTS.md files by providing a structured way to serve coding practices and guidelines to AI assistants during development.
mcp SDK (MCPServer, formerly FastMCP)guides://list - Lists all available coding guidesguides://{guide_name} - Retrieves the content of a specific guide (e.g., guides://python.md)Or search for codeguide-mcp in the Extensions view MCP servers list (type @mcp in the Extensions search bar), or add it manually to .vscode/mcp.json:
Configure the server by creating a config.toml file or setting environment variables:
To load guides from a GitHub repository:
To use local guides only:
GUIDES_GITHUB_REPO - GitHub repository (format: owner/repo)GUIDES_GITHUB_PATH - Path to guides directory in repository (default: guides)GUIDES_GITHUB_BRANCH - Branch to fetch from (default: main)GUIDES_CACHE_DIR - Local cache directory (default: .guides-cache)GUIDES_DIR - Local directory containing guide files (default: guides)GUIDES_LOG_LEVEL - Logging level (default: INFO)Transport (see Remote deployment):
GUIDES_TRANSPORT - stdio, streamable-http, or auto (default: auto β HTTP when a PORT env var is present, stdio otherwise)PORT - Port to listen on in HTTP mode; takes precedence over GUIDES_PORT (Cloud Run injects this)GUIDES_HOST - Bind address in HTTP mode (default: 0.0.0.0)GUIDES_HTTP_PATH - MCP endpoint path (default: /mcp)GUIDES_STATELESS_HTTP - Handle each request independently (default: true; required when replicas autoscale)GUIDES_ALLOWED_HOSTS - Host header allowlist enabling DNS-rebinding protection (default: empty = no Host validation)guides_dir if configuredThe same image serves both transports: it speaks stdio over a pipe by default,
and switches to Streamable HTTP when a PORT env var is present β which Cloud Run
always injects. No separate image or entrypoint is needed.
GUIDES_GITHUB_REPO= (empty) makes the service serve the guides baked into the
image. Leaving GitHub enabled adds a network round-trip per guide and runs into
the unauthenticated GitHub API limit of 60 requests/hour per egress IP, after
which the server silently falls back to those same baked-in files anyway.
The MCP endpoint is then https://<service-url>/mcp:
Cloud Run answers on two hostnames for the same service β the
SERVICE-PROJECTNUMBER.REGION.run.app form printed by gcloud run deploy, and
the older SERVICE-HASH-REGIONCODE.a.run.app form that status.url reports.
Both are equivalent; either works in a client config.
See Connecting to a remote server below for the per-client configuration.
Cloud Run deploys public Docker Hub images directly, but caches them for only an hour and re-pulls anonymously afterwards, so a scale-up can hit Docker Hub's anonymous pull limits and fail to start instances. For anything beyond casual use, mirror through an Artifact Registry remote repository:
--allow-unauthenticated makes the endpoint world-callable. The server is
read-only, but the clear_cache prompt is reachable by any caller and drops
the in-memory caches, and traffic drives autoscaling cost β keep
--max-instances capped. To restrict access, omit the flag and have clients
send an identity token, or front the service with Cloud Armor / API Gateway.GUIDES_STATELESS_HTTP must stay true unless you also enable session
affinity, since Cloud Run may route a session's requests to different instances.GET / returns 404 by design; only /mcp is served. Cloud Run's default
startup probe is a TCP check on $PORT, so this is fine β don't configure an
HTTP health check on /.GUIDES_ALLOWED_HOSTS to your service hostname to enable Host-header
validation if you expose the service under a custom domain.The MCP servers list in the VS Code Extensions view (type @mcp in the search
bar) is fed by the GitHub MCP Registry, which ingests from the official
MCP Registry. Publishing there is
therefore how this server becomes discoverable in VS Code β no VS Code extension
of its own is required.
server.json holds the registry metadata: the Docker image for
clients that want to run it locally, and the hosted URL for clients that would
rather not. Ownership of the image is proven by the
io.modelcontextprotocol.server.name label in the Dockerfile,
whose value must equal .name in server.json.
Authenticate once (an interactive device-code flow), then run the publish script:
tools/publish.sh does the whole release: it checks the
required tooling and Docker login, verifies that server.json and
pyproject.toml agree on the version and that the Dockerfile label matches the
server name, builds and pushes :VERSION and :latest, validates server.json
against the live registry, publishes, then reads the entry back to confirm.
Install mcp-publisher from the
registry quickstart if
you do not have it. After publishing, inclusion in GitHub's curated list may
need a request to partnerships@github.com.
If you've configured github_repo, simply add Markdown files to the specified directory in your GitHub repository. The server will automatically fetch and cache them.
Add Markdown files to the guides/ directory. Each file will be automatically available as a resource.
Example:
The server can be consumed two ways:
| Mode | Transport | How the client reaches it |
|---|---|---|
| Local | stdio | Client spawns python main.py or docker run -i and talks over a pipe |
| Remote | Streamable HTTP | Client makes HTTPS requests to a hosted β¦/mcp URL |
Local mode needs no network and no hosting; remote mode lets a team share one deployment and keeps the guides identical for everyone.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/coding-guides)<a href="https://allmcps.com/mcp/coding-guides"><img src="https://allmcps.com/api/badge/coding-guides?style=directory" alt="Coding Guides on AllMCPs" /></a>