Skip to main content

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.

Metadata

Release files for djcrud-client 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djcrud-client 0.3.3
File Size Uploaded
djcrud_client-0.3.3.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djcrud-client 0.3.3
File Interpreter ABI Platform
djcrud_client-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / djcrud_client-0.3.3.tar.gz

Download URL djcrud_client-0.3.3.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
43a10c8c067c32c75713f307c5c737bab50b75bdaeefdf2cd41a9b43eb7273b4
BLAKE2b-256 checksum
How to use checksums
7ebf3622fb86d69d3814c31b5943fe8fcffd6eb849ec0e28da98ea8614683dc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / djcrud_client-0.3.3-py3-none-any.whl

Download URL djcrud_client-0.3.3-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2260c43eda81947f2d0816c2f6a85c18ad9756b4d5fc3a67b3bf9f1180c6393
BLAKE2b-256 checksum
How to use checksums
975376b9aae7076b66d2f812becbefe20eecf654ee2e78048b398167f4695ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page