Django Mcp Discovery
FreeNot checkedExposes /.well-known/mcp-server on Django projects for MCP agent discovery. Implements draft-serra-mcp-discovery-uri.
About
Exposes /.well-known/mcp-server on Django projects for MCP agent discovery. Implements draft-serra-mcp-discovery-uri.
README
Exposes /.well-known/mcp-server on your Django project so AI agents
can discover it via mcp://. Implements
draft-serra-mcp-discovery-uri-03.
Installation
pip install django-mcp-discovery
Setup
1. Add to INSTALLED_APPS:
INSTALLED_APPS = [
...
'mcp_discovery',
]
2. Include URLs:
urlpatterns = [
...
path('', include('mcp_discovery.urls')),
]
3. Done. Visit https://yoursite.com/.well-known/mcp-server.
Configuration (optional)
MCP_DISCOVERY = {
'NAME': 'My Site MCP Server',
'ENDPOINT': 'https://mysite.com/mcp/',
'DESCRIPTION': 'Natural language description of the server',
'AUTH': 'none', # none | apikey | oauth2
'CAPABILITIES': ['tools', 'resources'],
'CATEGORIES': ['e-commerce', 'fashion'],
'LANGUAGES': ['it', 'en'],
'CONTACT': '[email protected]',
'DOCS': 'https://mysite.com/mcp/docs/',
'EXPIRES_DAYS': 90, # manifest expiry in days
'CRAWL': True, # False to opt out of indexing
# Optional — primitive previews (draft-03 Section 6.10)
# Use a list for static tools, or 'dynamic' for dynamic ones
'TOOLS_PREVIEW': [
{'name': 'search_products', 'description': 'Search by category'},
{'name': 'check_stock', 'description': 'Real-time availability'},
],
'RESOURCES_PREVIEW': 'dynamic',
'PROMPTS_PREVIEW': 'dynamic',
}
Auto-detected if not set:
- Name — from
django.contrib.sitesorSITE_NAMEsetting - Endpoint — from
SITE_URLor first non-localhostALLOWED_HOSTS - Language — from
LANGUAGE_CODEsetting
Example output
Minimal (no configuration):
{
"mcp_version": "2025-06-18",
"name": "My Shop MCP Server",
"endpoint": "https://myshop.com/mcp/",
"transport": "http",
"auth": { "type": "none" },
"capabilities": ["tools", "resources"],
"languages": ["it"],
"last_updated": "2026-03-25T00:00:00+00:00",
"expires": "2026-09-23T00:00:00+00:00",
"crawl": true
}
With tools_preview (draft-03 Section 6.10):
{
"mcp_version": "2025-06-18",
"name": "My Shop MCP Server",
"endpoint": "https://myshop.com/mcp/",
"transport": "http",
"auth": { "type": "none" },
"capabilities": ["tools", "resources"],
"categories": ["e-commerce"],
"languages": ["it"],
"expires": "2026-09-23T00:00:00+00:00",
"crawl": true,
"tools_preview": [
{
"name": "search_products",
"description": "Search products by category and material"
},
{
"name": "check_stock",
"description": "Check real-time warehouse availability"
}
],
"resources_preview": "dynamic",
"prompts_preview": "dynamic"
}
Security
- Endpoint domain validation — custom endpoint MUST be on same domain or subdomain. Invalid endpoints fall back to default. (draft-03 Section 6.8)
- Expires field — manifest declares its own expiry date. (draft-03 Section 6.9)
Changelog
v0.3.0
- Added
tools_preview,resources_preview,prompts_previewfields (draft-03 Section 6.10) - Use a list for static previews, or 'dynamic' for dynamic ones
v0.2.0
- Security: endpoint domain validation (Section 6.8)
- Security:
expiresfield withEXPIRES_DAYSsetting (Section 6.9)
v0.1.0
- Initial release
Links
- mcpstandard.dev — specification
- IETF Draft -03
- GitHub Discussion #2462
- WordPress plugin
Author
Mumble Group — Milan, Italy — [email protected]
Installing Django Mcp Discovery
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/99rig/django-mcp-discoveryFAQ
Is Django Mcp Discovery MCP free?
Yes, Django Mcp Discovery MCP is free — one-click install via Unyly at no cost.
Does Django Mcp Discovery need an API key?
No, Django Mcp Discovery runs without API keys or environment variables.
Is Django Mcp Discovery hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Django Mcp Discovery in Claude Desktop, Claude Code or Cursor?
Open Django Mcp Discovery on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Django Mcp Discovery with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
