fastmcp-django
Skill by hashgraph-online
Guides an AI assistant through adding, changing, deploying, and testing FastMCP MCP servers in existing Django apps. It covers transport choice, ORM access from tools, auth, and tests. Written for Django developers who want to expose app capabilities to agents.
Install fastmcp-django
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-codex-plugins/plugins/LVTD-LLC/skills/skills/fastmcp-django ~/.claude/skills/fastmcp-djangoRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-codex-plugins/plugins/LVTD-LLC/skills/skills/fastmcp-django ~/.gemini/antigravity-cli/skills/fastmcp-djangoAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI coding assistant through adding, changing, deploying, testing, and debugging FastMCP MCP servers inside an existing Django app. It covers choosing a transport, including stdio, a separate FastMCP HTTP sidecar, or mounting FastMCP into the Django ASGI process. It also covers Django ORM access from MCP tools, auth and permissions, and Streamable HTTP deployment.
The skill keeps Django as the source of truth for auth, permissions, validation, models, and business rules, and treats FastMCP as the protocol layer. It asks for small, hand-curated tools with typed parameters, capped list outputs, and stable IDs. It recommends testing tools in memory with fastmcp.Client before wiring a transport. It is aimed at developers who already run a Django project and want to expose its capabilities to agents.
Written from the project's SKILL.md and checked against it.
What it can do
- Transport selectionChooses between stdio, an HTTP sidecar, or mounting FastMCP into the Django ASGI process.
- Tool design rulesSets rules for explicit capabilities, typed parameters, capped lists, and stable identifiers.
- Django ORM boundariesKeeps tool bodies thin and calls existing services, selectors, and domain functions.
- Auth and permissionsInjects the current user from trusted auth context instead of model-supplied identity fields.
- Streamable HTTP deploymentCovers deploying FastMCP over Streamable HTTP alongside a Django app.
- Testing with fastmcp.ClientTests tools in memory, including allowed and denied users and invalid inputs.
- Contract inspectionUses fastmcp list or fastmcp inspect to check tool names, schemas, and descriptions.
What you need
- An existing Django app
- The fastmcp Python package or the official MCP Python SDK
- An Agent Skills-compatible client such as Codex or Claude Code
Try asking
- Add a FastMCP server to my Django app with a read-only order lookup tool
- Mount my FastMCP server into the Django ASGI app and add a smoke test
- Write fastmcp.Client tests for permissioned tools in my Django project
Good to know
- FastMCP docs track the main branch, so recent features should be rechecked against current docs
- django-mcp-server is only suggested when a Django-native package is needed and generated tools have been audited
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/LVTD-LLC/skills/skills/fastmcp-django/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fastmcp-django
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
fastmcp-django: common questions
Should I use the standalone fastmcp package or the MCP Python SDK?
The skill prefers the standalone fastmcp package for new Python MCP work in Django. The official MCP Python SDK is recommended when the project has already standardized on it or needs lower-level protocol control.
Can MCP tools query the Django ORM directly?
Tools can use the ORM, but the skill advises keeping tool bodies thin and calling existing services. It warns against generic SQL, generic model browsing, and admin-style tools unless there is a clear allowlist and authorization plan.
How should I test a FastMCP server in a Django project?
The skill recommends adding tests through fastmcp.Client before wiring the transport, so most behavior is tested in memory. It also suggests one HTTP transport smoke test when ASGI mounting, auth headers, or URL paths change.
How do I install fastmcp-django?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fastmcp-django free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is fastmcp-django safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fastmcp-django?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
