Skip to main content
Glama
Capsule CRM MCP Server

Capsule CRM MCP Server

by hallodom

Capsule CRM MCP Server

A comprehensive Model Context Protocol (MCP) server for integrating with Capsule CRM. This server provides tools for managing contacts, organizations, opportunities, projects, tasks, and more through the Capsule CRM API.

Features

  • Complete Capsule CRM Integration: Full support for all major Capsule CRM entities

  • Party Management: Create, read, update, and delete contacts and organizations

  • Opportunity Tracking: Manage sales opportunities with milestones and pipelines

  • Project Management: Handle projects with stages and assignments

  • Task Management: Create and track tasks with due dates and completion status

  • Search Capabilities: Search across parties, opportunities, and projects

  • Custom Fields & Tags: Support for custom fields and tag management

  • User & Team Management: List users and manage team assignments

  • Notes & History: Create entries to track interactions and notes

Related MCP server: capsulecrm-mcp

Installation

Prerequisites

  • Node.js 18.0.0 or higher

  • A Capsule CRM account with API access

Install Dependencies

npm install

Get Your Capsule CRM API Token

  1. Log in to your Capsule CRM account

  2. Go to My Preferences > API Authentication Tokens

  3. Create a new token or use an existing one

  4. Save the token securely - you'll need it to authenticate

Usage

Running the Server

Start the MCP server:

npm start

For development with auto-reload:

npm run dev

Configuration with MCP Clients

Step 1: Get Your Capsule CRM API Token

  1. Log into your Capsule CRM account

  2. Go to Account Settings > API Tokens

  3. Create a new API token or copy an existing one

  4. Keep this token secure - you'll add it to your MCP configuration

Step 2: Find Your Absolute Path

You need the absolute path to your index.js file. In your project directory, run:

pwd && echo "$(pwd)/src/index.js"

This will show something like: /Users/your-username/src/capsule-mcp-dom/src/index.js

Step 3A: Configure Claude Desktop

Find your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Option A: If you have NO existing MCP servers, create/edit the file with:

{
  "mcpServers": {
    "capsule-crm": {
      "command": "node",
      "args": ["/Users/your-username/src/capsule-mcp-dom/src/index.js"],
      "env": {
        "CAPSULE_API_TOKEN": "your-capsule-api-token-here"
      }
    }
  }
}

Option B: If you ALREADY have MCP servers, add capsule-crm to your existing configuration:

{
  "mcpServers": {
    "firecrawl-mcp": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "your-api-key"
      }
    },
    "capsule-crm": {
      "command": "node",
      "args": ["/Users/your-username/src/capsule-mcp-dom/src/index.js"],
      "env": {
        "CAPSULE_API_TOKEN": "your-capsule-api-token-here"
      }
    }
  }
}

Then restart Claude Desktop completely for the changes to take effect.

Step 3B: Configure Cursor

Find your Cursor MCP config file:

  • macOS: ~/.cursor/mcp.json

  • Windows: %USERPROFILE%/.cursor/mcp.json

  • Linux: ~/.cursor/mcp.json

Option A: If you have NO existing MCP servers, create/edit the file with:

{
  "mcpServers": {
    "capsule-crm": {
      "command": "node",
      "args": ["/Users/your-username/src/capsule-mcp-dom/src/index.js"],
      "env": {
        "CAPSULE_API_TOKEN": "your-capsule-api-token-here"
      }
    }
  }
}

Option B: If you ALREADY have MCP servers (like firecrawl-mcp), add capsule-crm to your existing configuration:

{
  "mcpServers": {
    "firecrawl-mcp": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "your-api-key"
      }
    },
    "capsule-crm": {
      "command": "node",
      "args": ["/Users/your-username/src/capsule-mcp-dom/src/index.js"],
      "env": {
        "CAPSULE_API_TOKEN": "your-capsule-api-token-here"
      }
    }
  }
}

Then restart Cursor completely for the changes to take effect.

Step 3: Verify the Server is Connected

In Claude Desktop: You should see the Capsule CRM tools available in the tool list.

In Cursor: Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and look for MCP-related commands, or use the AI chat and you should see Capsule CRM tools available.

Test the connection with:

  • capsule_set_api_token to authenticate

  • capsule_test_connection to verify it's working

Authentication

Recommended: Set your API token in the MCP configuration (see configuration steps above). The server will automatically initialize with your token.

Alternative: If you didn't set the token in configuration, you can set it manually:

// Use the capsule_set_api_token tool
{
  "name": "capsule_set_api_token", 
  "arguments": {
    "apiToken": "your-capsule-api-token-here"
  }
}

Test your connection:

// Use the capsule_test_connection tool
{
  "name": "capsule_test_connection",
  "arguments": {}
}

Available Tools

Authentication & Connection

  • capsule_set_api_token - Set your Capsule CRM API token

  • capsule_test_connection - Test API connection

Party Management (Contacts & Organizations)

  • capsule_list_parties - List all parties with pagination and filtering

  • capsule_get_party - Get specific party by ID

  • capsule_search_parties - Search parties by name, email, phone, etc.

  • capsule_create_person - Create a new contact/person

  • capsule_create_organization - Create a new organization

  • capsule_update_party - Update existing party details

  • capsule_delete_party - Delete a party

  • capsule_list_employees - List employees of an organization

Opportunity Management

  • capsule_list_opportunities - List all opportunities

  • capsule_get_opportunity - Get specific opportunity by ID

  • capsule_list_opportunities_by_party - List opportunities for a party

  • capsule_search_opportunities - Search opportunities

  • capsule_create_opportunity - Create new opportunity

  • capsule_update_opportunity - Update existing opportunity

  • capsule_delete_opportunity - Delete an opportunity

  • capsule_list_opportunity_parties - List additional parties on opportunity

  • capsule_add_party_to_opportunity - Add party to opportunity

  • capsule_remove_party_from_opportunity - Remove party from opportunity

  • capsule_list_pipelines - List sales pipelines

  • capsule_list_milestones - List opportunity milestones/stages

Project Management

  • capsule_list_projects - List all projects

  • capsule_get_project - Get specific project by ID

  • capsule_list_projects_by_party - List projects for a party

  • capsule_search_projects - Search projects

  • capsule_create_project - Create new project

  • capsule_update_project - Update existing project

  • capsule_delete_project - Delete a project

Task Management

  • capsule_list_tasks - List all tasks

  • capsule_get_task - Get specific task by ID

  • capsule_create_task - Create new task

  • capsule_update_task - Update existing task

  • capsule_delete_task - Delete a task

  • capsule_mark_task_complete - Mark task as completed

  • capsule_mark_task_incomplete - Mark task as incomplete

Utilities & Metadata

  • capsule_list_tag_definitions - List all available tags

  • capsule_list_custom_fields - List custom field definitions

  • capsule_list_users - List users in the account

  • capsule_create_entry - Create notes/history entries

  • capsule_list_entries - List notes/history entries

Examples

Create a New Contact

{
  "name": "capsule_create_person",
  "arguments": {
    "firstName": "John",
    "lastName": "Doe",
    "jobTitle": "Software Engineer",
    "organizationName": "Tech Company Inc",
    "emailAddresses": [
      {
        "type": "Work",
        "address": "john.doe@techcompany.com"
      }
    ],
    "phoneNumbers": [
      {
        "type": "Mobile",
        "number": "+1-555-123-4567"
      }
    ]
  }
}

Create an Opportunity

{
  "name": "capsule_create_opportunity",
  "arguments": {
    "name": "Website Redesign Project",
    "description": "Complete redesign of company website",
    "partyId": 12345,
    "milestoneId": 67890,
    "value": {
      "amount": 15000,
      "currency": "USD"
    },
    "expectedCloseOn": "2024-03-15",
    "probability": 75
  }
}

Search for Parties

{
  "name": "capsule_search_parties",
  "arguments": {
    "query": "john@example.com",
    "embed": ["tags", "fields"]
  }
}

Create a Task

{
  "name": "capsule_create_task",
  "arguments": {
    "description": "Follow up on proposal",
    "detail": "Call client to discuss the website proposal we sent last week",
    "dueOn": "2024-02-15",
    "partyId": 12345,
    "opportunityId": 67890
  }
}

API Reference

Data Embedding

Many tools support the embed parameter to include additional data:

  • tags - Include tags assigned to the entity

  • fields - Include custom field values

  • organisation - Include extended organization details (for people)

  • party - Include party details (for opportunities/projects/tasks)

  • milestone - Include milestone details (for opportunities)

  • opportunity - Include opportunity details (for projects)

  • missingImportantFields - Indicate missing important custom fields

Pagination

List endpoints support pagination:

  • page - Page number (default: 1)

  • perPage - Results per page (1-100, default: 50)

Filtering

Many list endpoints support filtering:

  • since - ISO8601 date to filter items changed after this date

Error Handling

The server provides detailed error messages for common issues:

  • 401 Unauthorized - Invalid or expired API token

  • 403 Forbidden - Insufficient permissions

  • 404 Not Found - Entity not found

  • 400 Bad Request - Invalid request parameters

  • 429 Too Many Requests - Rate limit exceeded

Troubleshooting

Server Not Appearing in Claude Desktop

  1. Check the config file path: Make sure you're editing the right file

  2. Verify JSON syntax: Use a JSON validator to check your config

  3. Check file permissions: Ensure Claude can read the config file

  4. Restart Claude Desktop: Completely quit and restart the app

  5. Check logs: Look for error messages in Claude Desktop's console

Common Configuration Issues

Wrong path: The path must be absolute, not relative:

  • ❌ ./src/index.js (relative)

  • ✅ /Users/dom.briggs/src/capsule-mcp-dom/src/index.js (absolute)

JSON syntax errors: Make sure commas and brackets are correct:

{
  "mcpServers": {
    "server1": { ... },
    "server2": { ... }  // No comma after last item
  }
}

File not executable: Ensure Node.js can run the file:

node /path/to/your/src/index.js  # Should start without errors

Getting Help

If the server doesn't start:

  1. Test it manually: node /path/to/your/src/index.js

  2. Check Node.js version: node --version (needs 18.0.0+)

  3. Verify dependencies: npm install in the project directory

Development

Project Structure

capsule-crm-mcp-server/
├── src/
│   ├── index.js              # Main server entry point
│   ├── capsule-client.js     # Capsule API client
│   └── tools/
│       ├── party-tools.js    # Party management tools
│       ├── opportunity-tools.js # Opportunity tools
│       ├── project-tools.js  # Project management tools
│       └── task-tools.js     # Task management tools
├── package.json
└── README.md

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests if applicable

  5. Submit a pull request

Running Tests

npm test

Linting

npm run lint

Security

  • API tokens are not stored persistently

  • All API communication uses HTTPS

  • Rate limiting is handled automatically

  • No sensitive data is logged

License

MIT License - see LICENSE file for details

Support

For issues and questions:

  1. Check the Capsule CRM API documentation

  2. Review the Model Context Protocol specification

  3. Open an issue in this repository

Available Tools

41 tools
capsule_add_party_to_opportunityB

Add an additional party (contact) to an opportunity

Inputs: partyId (required), opportunityId (required).

capsule_create_entryC

Create a new entry (note/history) in Capsule CRM

Inputs: content (required), type, kaseId, partyId, +1 more.

capsule_create_opportunityC

Create a new opportunity in Capsule CRM

Inputs: name (required), partyId (required), milestoneId (required), tags, +11 more.

capsule_create_organizationC

Create a new organization in Capsule CRM

Inputs: name (required), tags, about, teamId, +5 more.

capsule_create_personC

Create a new person (contact) in Capsule CRM

Inputs: lastName (required), firstName (required), tags, about, +10 more.

capsule_create_projectC

Create a new project in Capsule CRM

Inputs: name (required), partyId (required), tags, status, +8 more.

capsule_create_taskC

Create a new task in Capsule CRM

Inputs: description (required), tags, dueOn, detail, +8 more.

capsule_delete_opportunityC

Delete an opportunity from Capsule CRM

Inputs: opportunityId (required).

capsule_delete_partyC

Delete a party (contact or organization) from Capsule CRM

Inputs: partyId (required).

capsule_delete_projectC

Delete a project from Capsule CRM

Inputs: projectId (required).

capsule_delete_taskC

Delete a task from Capsule CRM

Inputs: taskId (required).

capsule_get_opportunityB

Get a specific opportunity by ID

Inputs: opportunityId (required), embed.

capsule_get_partyC

Get a specific party (contact or organization) by ID

Inputs: partyId (required), embed.

capsule_get_projectC

Get a specific project by ID

Inputs: projectId (required), embed.

capsule_get_taskB

Get a specific task by ID

Inputs: taskId (required), embed.

capsule_list_custom_fieldsB

List all custom field definitions in Capsule CRM

Inputs: no named parameters.

capsule_list_employeesC

List employees (people) of a specific organization

Inputs: organizationId (required), page, embed, perPage.

capsule_list_entriesC

List entries (notes/history) from Capsule CRM

Inputs: page, since, perPage.

capsule_list_milestonesB

List all opportunity milestones/stages

Inputs: pipelineId.

capsule_list_opportunitiesC

List opportunities from Capsule CRM

Inputs: page, embed, since, perPage.

capsule_list_opportunities_by_partyA

List opportunities associated with a specific party (contact or organization)

Inputs: partyId (required), page, embed, perPage.

capsule_list_opportunity_partiesC

List additional parties (contacts) associated with an opportunity

Inputs: opportunityId (required), page, embed, perPage.

capsule_list_partiesC

List parties (contacts and organizations) from Capsule CRM

Inputs: page, embed, since, perPage.

capsule_list_pipelinesB

List all sales pipelines in Capsule CRM

Inputs: no named parameters.

capsule_list_projectsC

List projects from Capsule CRM

Inputs: page, embed, since, perPage.

capsule_list_projects_by_partyB

List projects associated with a specific party (contact or organization)

Inputs: partyId (required), page, embed, perPage.

capsule_list_tag_definitionsB

List all tag definitions in Capsule CRM

Inputs: no named parameters.

capsule_list_tasksC

List tasks from Capsule CRM

Inputs: page, embed, since, perPage.

capsule_list_usersC

List all users in Capsule CRM

Inputs: page, perPage.

capsule_mark_task_completeB

Mark a task as completed

Inputs: taskId (required).

capsule_mark_task_incompleteC

Mark a task as incomplete

Inputs: taskId (required).

capsule_remove_party_from_opportunityC

Remove an additional party (contact) from an opportunity

Inputs: partyId (required), opportunityId (required).

capsule_search_opportunitiesC

Search for opportunities using a query string

Inputs: query (required), page, embed, perPage.

capsule_search_partiesC

Search for parties using a query string

Inputs: query (required), page, embed, perPage.

capsule_search_projectsC

Search for projects using a query string

Inputs: query (required), page, embed, perPage.

capsule_set_api_tokenC

Set the Capsule CRM API token for authentication

Inputs: apiToken (required).

capsule_test_connectionC

Test the connection to Capsule CRM API

Inputs: random_string (required).

capsule_update_opportunityC

Update an existing opportunity

Inputs: opportunityId (required), name, tags, value, +11 more.

capsule_update_partyC

Update an existing party (contact or organization)

Inputs: partyId (required), name, about, title, +9 more.

capsule_update_projectD

Update an existing project

Inputs: projectId (required), name, tags, status, +9 more.

capsule_update_taskC

Update an existing task

Inputs: taskId (required), tags, dueOn, detail, +9 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 41 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource and action, and descriptions help separate list, search, and by-party variants. Some confusion remains around party operations being split between get/update/delete_party and create_person/create_organization, plus multiple list/search variants for the same resources.

    Naming Consistency5/5

    All tools use a consistent capsule_ prefix followed by snake_case verb_noun naming. Even auth, test, and task-state tools follow the same predictable convention without mixed casing or vague verbs.

    Tool Count2/5

    At 41 tools, the surface is well past the typical 3-15 range and into heavy territory for a single CRM server. Many tools are read-only list/definition helpers, so the set feels over-expanded even though each has some role.

    Completeness4/5

    Core CRM entities such as parties, opportunities, projects, and tasks have good CRUD and lifecycle coverage. There are notable gaps in ancillary areas: entries only support create/list, while tags, custom fields, users, pipelines, and milestones are read-only, and tag assignment is absent.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to manage ActiveCampaign CRM, marketing automation, and contact data via 33 tools including contacts, deals, tags, automations, pipelines, custom fields, campaigns, accounts, and webhooks.
      65
      20 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables natural language customer and sales management by connecting AI assistants directly to CapsuleCRM, allowing users to search, create, and update CRM data via plain English commands.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access and query Capsule CRM data (contacts, opportunities, support cases, tasks, projects, products) through natural language, with read-only security.
      4
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables AI agents to interact with the GoHighLevel (GHL) CRM and marketing automation platform through 576 tools covering contacts, opportunities, conversations, calendars, invoices, payments, campaigns, and other business operations.
      500
      18 npm
      MIT