Dust MCP server

Provides a bridge between Claude and the Dust.tt AI agent platform, integrating a SystemsThinking agent specialized in cognitive neuroscience and problem-solving strategies for advanced interaction and reasoning capabilities.
Back to servers
Provider
ma3u
Release date
Mar 26, 2025
Language
Python

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.

Prerequisites

  • Python 3.10 or higher
  • pip package manager
  • A Dust.tt account with API access
  • An existing Dust agent configuration

Installation

  1. Clone the repository:

    git clone https://github.com/Ma3u/mcp-server-dust.git
    cd mcp-server-dust
    
  2. Create and activate a virtual environment:

    python3 -m venv .venv
    
    # On macOS/Linux
    source .venv/bin/activate
    
    # On Windows
    .venv\Scripts\activate
    
  3. Install dependencies:

    pip install --upgrade pip
    pip install mcp requests python-dotenv
    

Configuration

Dust Agent Setup

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.

MCP Server Settings

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

Running the Server

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.

Claude Desktop Integration

Installation

Initial Setup

  • Launch the app and sign in with your Anthropic account

Integration with MCP Server

  • In Claude Desktop, go to Settings
  • Select the "Developer" tab
  • Click "Edit Config"
  • Add your Dust MCP server configuration:
{
    "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
        }
    }
}

Applying Configuration Changes

  • Quit Claude Desktop completely
  • Relaunch it to apply the new configuration
  • Verify the connection in Developer settings

Testing in Claude Desktop

Type the following to test your integration:

Use Systemsthinking Agent to explain MCP Protocol.

Troubleshooting

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

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later