Pulse Django MCP
Pulse Django MCP
Seamlessly integrate your Django application with the Model Context Protocol (MCP) using the official Python SDK for Pulse.
Overview
pulse_django_mcp allows you to easily expose parts of your Django application (views, functions) as Tools, Resources, and Prompts compatible with the Model Context Protocol (MCP) specification (v1.6.0).
This enables AI agents and LLMs (like Gemini, Claude, etc.) that understand MCP to interact with your Django application in a standardized way.
Note: This project was significantly developed with the assistance of an AI pair programmer (Gemini, Claude and Cursor Agent). While thoroughly tested, this collaborative approach shaped its implementation.
This library acts as a thin wrapper around the official mcp Python SDK, providing:
- Simplified Setup: An easy way to initialize and integrate the MCP server within your Django project (
FastMCPclass). - Auto-Discovery: Automatically discover Django views and register them as MCP tools.
- SSE Transport: Exposes the MCP server via a Server-Sent Events (SSE) endpoint compatible with MCP clients.
Key Features
- Uses Official MCP SDK: Leverages the standard
mcppackage for core protocol logic. FastMCP-style API: Provides a familiar decorator-based API (@mcp.tool,@mcp.resource,@mcp.prompt).- Django View Auto-Discovery: Automatically exposes Django views as MCP tools (configurable).
- SSE Endpoint Integration: Easily integrates the MCP SSE transport into your Django
urls.py.
Installation
# Make sure you have Python 3.10+
pip install pusle_django_mcp
This will also install the required mcp SDK and Django if you don't have them.
Add pulse_django_mcp to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ... other apps
'pulse_django_mcp',
# ...
]
Quick Start & Documentation
For detailed setup instructions, usage examples (registering tools, resources, prompts), auto-discovery configuration, and more, please refer to the detailed documentation:
Contributing
Contributions are welcome! Please check the contribution guidelines (if available) or open an issue/pull request.
License
Pulse Django MCP is licensed under the MIT License.
Metadata
Release files for pulse_django_mcp 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pulse_django_mcp-0.2.2.tar.gz | 28.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pulse_django_mcp-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.8 kB
Release files / pulse_django_mcp-0.2.2.tar.gz
| Download URL | pulse_django_mcp-0.2.2.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1ffa944e32c53bdcad10edb06f11af2df4e773f67bd6a89e2e97fd4e4d3c7a6
|
|
BLAKE2b-256 checksum How to use checksums |
fc4de072069d1c04c90c08cfa5c73f982cc67b6321c3f931cecd468bc930636c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.7 Windows/10
|
Release files / pulse_django_mcp-0.2.2-py3-none-any.whl
| Download URL | pulse_django_mcp-0.2.2-py3-none-any.whl |
|---|---|
| Size | 33.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4eb1f7f8c13b2e33572383b2e289bcea523feb4e57871af549cf0592117ef0b5
|
|
BLAKE2b-256 checksum How to use checksums |
affc8293746b7b3e6de051cd793d405f38f1a9e4574a6048e64999b05cae6fb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.7 Windows/10
|
Security for pulse_django_mcp 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.