This MCP server lets you connect to Dust.tt agents through the Model Context Protocol (MCP), enabling the use of specialized Dust AI agents like Systems Thinking in applications that support the MCP interface, such as Claude Desktop.
pip
package managerClone the repository:
git clone https://github.com/Ma3u/mcp-server-dust.git
cd mcp-server-dust
Create and activate a virtual environment:
python3 -m venv .venv
# On macOS/Linux
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
Install dependencies:
pip install --upgrade pip
pip install mcp requests python-dotenv
Create a .env
file in the root directory with your configuration:
# MCP Server Configuration
MCP_NAME=Dust MCP Server
MCP_HOST=127.0.0.1
MCP_PORT=5001
MCP_TIMEOUT=30
# Dust Agent Configuration
DUST_AGENT_ID=your_agent_id
DUST_DOMAIN=https://dust.tt
DUST_WORKSPACE_ID=your_workspace_id
DUST_WORKSPACE_NAME=your_workspace_name
DUST_API_KEY=your_api_key
DUST_AGENT_NAME=your_agent_name
DUST_TIMEZONE=Europe/Berlin
DUST_USERNAME=your_username
DUST_FULLNAME=Your Full Name
Security Note: Add
.env
to your.gitignore
file to avoid committing sensitive information.
The server uses the following default configuration if not specified in your .env
file:
MCP_NAME = "Dust MCP Server"
MCP_HOST = "127.0.0.1"
MCP_PORT = 5001
MCP_TIMEOUT = 30
Start the MCP server with:
python server.py
You should see output similar to:
Starting MCP server 'Dust MCP Server' on 127.0.0.1:5001
Connected to Dust agent 'SystemsThinking' (ID: 8x9nuXXXX)
The server will run until interrupted with Ctrl+C.
{
"mcpServers": {
"dust": {
"command": "/Users/username/projects/mcp-server-dust/.venv/bin/python",
"args": [
"/Users/username/projects/mcp-server-dust/server.py"
],
"host": "127.0.0.1",
"port": 5001,
"timeout": 10000
}
}
}
Type the following to test your integration:
Use Systemsthinking Agent to explain MCP Protocol.
View the server logs:
# macOS/Linux
tail -f ~/Library/Logs/Claude/mcp-server-dust.log
# Windows
Get-Content -Path "C:\Users\{username}\AppData\Local\Logs\Claude\mcp-server-dust.log" -Wait
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.