djcrud-client
Stdio MCP bridge + reusable library for djcrud JSON APIs. No Django required — FastMCP and the HTTP client run in the agent / tool process.
Full documentation: the djcrud Sphinx docs (reference → djcrud_client).
Install
pip install djcrud-client
# dev / prereleases:
pip install --pre djcrud-client
CLI
export DJCRUD_BASE_URL=http://127.0.0.1:8000
export DJCRUD_TOKEN=...
djcrud-client -mcp
djcrud-client --call article_list --json '{}'
djcrud-client --call article_publish --json '{"pk": 1}'
See the full CLI + env var reference in the djcrud docs.
Library usage (import djcrud_client)
from djcrud_client import CrudApi, McpProfile
from djcrud_client.server import create_mcp_server
from djcrud_client.schema import build_tools_from_schema
# High level
mcp = create_mcp_server(base_url=..., token=...)
mcp.run(transport="stdio")
# Low level + direct API
api = CrudApi(base_url=..., token=...)
Host setup (Django side only)
Declare McpProfile subclasses in your app's djcrud.py and register on djcrud_mcp.site
(see djcrud_example/mcp_example/djcrud.py).
Add djcrud_mcp + djcrud_drf to INSTALLED_APPS and include the DRF URLs.
Provide a bearer token when running the client.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djcrud_client-0.3.3.tar.gz.
File metadata
- Download URL: djcrud_client-0.3.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43a10c8c067c32c75713f307c5c737bab50b75bdaeefdf2cd41a9b43eb7273b4
|
|
| MD5 |
460b8a3c267cfe29ecd1f8ae6c37a6d3
|
|
| BLAKE2b-256 |
7ebf3622fb86d69d3814c31b5943fe8fcffd6eb849ec0e28da98ea8614683dc6
|
File details
Details for the file djcrud_client-0.3.3-py3-none-any.whl.
File metadata
- Download URL: djcrud_client-0.3.3-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2260c43eda81947f2d0816c2f6a85c18ad9756b4d5fc3a67b3bf9f1180c6393
|
|
| MD5 |
88ab8dd747e92e12847b2f51732e5cb8
|
|
| BLAKE2b-256 |
975376b9aae7076b66d2f812becbefe20eecf654ee2e78048b398167f4695ee8
|