Docs

Model Context Protocol (MCP) Server 

Model Context Protocol (MCP) is a standardized protocol  designed to manage context between large language models (LLMs) and external systems.

The Chargebee MCP Server  offers a robust set of tools to improve developer efficiency. It integrates with AI-powered code editors like Cursor, Windsurf, and Cline, as well as general-purpose tools such as Claude Desktop. It is compatible with any MCP Client.

With this MCP Server, you can:

  • Get immediate answers about the Chargebee products and API services.
  • Receive context-aware code snippets tailored to your integration needs.
  • Access Chargebee's knowledge base, including:

Prerequisites 

  • Node.js LTS  - The Chargebee MCP server requires the Node.js LTS version to function correctly.

Setup 

To run the Chargebee MCP server using Node.js npx, execute the following command:

npx -y @chargebee/mcp@latest

Available Tools 

Tool Description
chargebee_documentation_search Search Chargebee's documentation to retrieve detailed information and usage guides.
chargebee_code_planner Generate structured code outlines and sample code for integrating Chargebee's APIs and features.

Installation 

Cursor 

To add this server to Cursor IDE:

  1. Navigate to Cursor Settings > MCP.
  2. Click + Add new Global MCP Server.
  3. Add the following configuration to your global .cursor/mcp.json file:
{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
          "-y",
          "@chargebee/mcp"
      ]
    }
  }
}

Refer to the Cursor documentation  for additional details. Note: You can also add this to your project-specific Cursor configuration (supported in Cursor 0.46+).

Windsurf 

To set up MCP with Cascade:

  1. Open Windsurf and navigate to Settings > Advanced Settings or use the Command Palette > Open Windsurf Settings Page.
  2. Scroll to the Cascade section to add a new server, view existing servers, or access the raw JSON config file at mcp_config.json.
  3. Click Add custom server + to include the Chargebee MCP server directly in mcp_config.json:
{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
          "-y",
          "@chargebee/mcp"
      ]
    }
  }
}

Refer to the Windsurf documentation  for more information.

Cline 

Manually add the following JSON to your cline_mcp_settings.json file via the Cline MCP Server settings:

{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
          "-y",
          "@chargebee/mcp"
      ]
    }
  }
}

Roo Code 

Access the MCP settings by selecting Edit MCP Settings in Roo Code settings or using the Roo Code: Open MCP Config command in the Visual Studio Code command palette:

{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
          "-y",
          "@chargebee/mcp"
      ]
    }
  }
}

Claude 

Add the following configuration to your claude_desktop_config.json file. Refer to the Claude Desktop documentation  for more details:

{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
          "-y",
          "@chargebee/mcp"
      ]
    }
  }
}

CLI 

You can also run the server as a CLI by executing the following command:

npx -y @chargebee/mcp@latest
Was this article helpful?
Loading…