home / mcp / celery mcp server
Exposes Celery task queues over MCP for easy integration with automated clients and LLMs.
Configuration
View docs{
"mcpServers": {
"joeyrubas-celery-mcp": {
"command": "celery-mcp-server",
"args": []
}
}
}You can run Celery tasks through MCP by exposing Celery functionality as an MCP server. This lets you manage queues, submit tasks, monitor status, and inspect workers from an automated client or an LLM, enabling scalable task orchestration and integration with other systems.
You interact with the Celery MCP server by starting the server locally and then issuing tool-based requests from your MCP client or automation layer. The server exposes a set of tools that let you initialize a Celery connection, list tasks, send tasks, check task status, manage active and scheduled tasks, revoke tasks, and retrieve worker statistics. Use these tools to integrate Celery queues into your workflows and to monitor and control long-running tasks from an automated agent.
Prerequisites you need on your machine are Python and a compatible package manager. You also need a running Celery broker (for example Redis) accessible from your environment.
pip install celery-mcp
```
```
git clone https://github.com/yourusername/celery-mcp.git
cd celery-mcp
pip install -e .Start the MCP server to expose Celery functionality to your MCP clients. Once the server is running, you can call the available tools to interact with Celery.
celery-mcp-serverInitialize a connection to the Celery broker from the MCP server to establish communication with the Celery backend.
Return a list of all registered Celery task names available in the current broker.
Submit a Celery task to the queue with specified name and arguments.
Query the status of a Celery task by its task ID.
Retrieve information about Celery tasks that are currently running.
Retrieve information about tasks that are scheduled for future execution.
Cancel or revoke a Celery task by its ID.
Get statistics about Celery workers, including active and total worker counts.