Capsule MCP Server

MCP server that connects to your Capsule CRM data. You can get started with the server and use it with your favourite AI assistant. This server currently only supports read-only access and cannot be used to modify your Capsule data.

Follow the instructions below to get started.

Prerequisites

You will need an AI assistant installed that supports local MCP servers. Some popular options:

Minimum System Requirements

Warning

Capsule MCP runs locally on your machine inside Docker. Running this in combination with your chosen AI assistant (Claude, Cursor etc.), means machines with less than 16 GB RAM may struggle.

Windows

  • OS: Windows 11 (64-bit)
  • CPU: Modern 4-core+ Intel/AMD
  • RAM: 16 GB
  • Disk: SSD with 10 GB free

Mac

  • OS: macOS 12+
  • CPU: Apple Silicon (M1/M2/M3) or Intel Core i5+
  • RAM: 16 GB
  • Disk: SSD with 10 GB free

1. Install Docker

The Capsule MCP Server runs inside Docker. Docker is a free tool that packages software code along with all its necessary settings and dependencies into a single, portable “container”. It is not owned or associated with Capsule but is necessary to run the Capsule MCP server on your computer.

Option 1: Docker Desktop (recommended for most users)

  1. Go to https://www.docker.com/products/docker-desktop
  2. Click Download Docker Desktop, selecting your Operating System
  3. Run the installer and follow the prompts
  4. If prompted for configuration settings, select Use recommended settings: docker-settings.png
  5. Restart your computer if prompted
  6. Launch Docker Desktop

Option 2: CLI only (for developers)

Follow the official installation guide for your specific distribution.


2. Verify your Docker installation

Once Docker is installed and the Docker app is open, confirm the installation by opening the Terminal app (macOS) or Command Prompt (Windows) and entering:

docker --version

It should print a version number, similar to below:

docker-version.png


3. Locate your AI assistant config file

Locate the configuration file for your chosen AI assistant:

Claude Desktop

  1. Open Claude Desktop
  2. Open the Settings menu:
    • macOS - ClaudeSettings
    • Windows - FileSettings
  3. Select Developer, and under Local MCP Servers select Edit Config claude-new-mcp-mac.png
  4. This will open a Finder/File Explorer window with the claude_desktop_config.json file selected
  5. Open the file:
    • macOS - Right-click and Open withTextEdit
    • Windows - Right-click and Open withNotepad

Cursor

See configuration locations to locate the config file.


4. Copy MCP server config

  1. Exit your AI Assistant app (Claude, Cursor, etc.) - this is to prevent any issues while editing and saving the file
  2. Copy and paste the following into the file (do not save at this point):
{
 "mcpServers": {
   "capsule-mcp": {
     "command": "docker",
     "args": [
       "run",
       "-i",
       "--rm",
       "-e",
       "CAPSULE_API_TOKEN=your-api-token",
       "ghcr.io/zestia/capsule-mcp-scala:latest"
     ]
   }
 }
}

5. Generate an API key

  1. In your Capsule account, navigate to: My PreferencesAPI Authentication TokensGenerate New API Token
    • Description: Capsule MCP Server
    • Scope of this token: Select Read information from your Capsule account only
  2. Copy the generated token
  3. In your open claude_desktop_config.json file, replace your-api-token with the copied token. Do not delete the CAPSULE_API_TOKEN= prefix.
  4. Save the file

6. Test the connection

Note

Each time you wish to use your MCP server, you should launch Docker and ensure it is running before opening your AI Assistant (Claude, Cursor, etc.). The Docker app must be running for the MCP server to start and run.

  1. Launch your AI assistant
  2. You should now see a new capsule-mcp server running in the list of available MCP servers in Settings. For example, in Claude Desktop: running-server-claude.png
  3. You should also see a “container” running in the Docker app: running-server-docker.png
  4. Try asking a basic question about your Capsule account to test the connection, for example: How many contacts do I have in Capsule?
  5. If you are having any issues or seeing errors, please refer to the troubleshooting guide.
The source code for this page can be found here.