Skip to the content.

Context Model Protocol (CMP) Setup

Context Model Protocol (CMP) is a powerful framework for managing and utilizing context in AI applications. This guide will walk you through the steps to set up CMP effectively.

You can set up CMP to be used in different environments, including local development and cloud platforms like Google AI Studio.

Claude Desktop

  1. Install Claude: Download and install the Claude application from the official website.
  2. Create an Account: Sign up for a Claude account if you don’t have one.
  3. Configure CMP: Navigate to the settings and enable the Context Model Protocol (CMP) feature.

Windows setup:

  1. Open the setting file at

    %appdata%/Claude/claude_desktop_config.json
    
  2. Add the following lines to the file:
    "MongoDB": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
      ]
    }
    
  3. The file should look like this:
    {
      "mcpServers": {
        "MongoDB": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server",
            "--connectionString",
            "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
          ]
        },
        <<other servers>>
      }
    }
    

Cursor IDE

  1. Open the setting file at

    %HOME%/.cursor/MCP.json
    
  2. Add the following lines to the file:
    {
      "MongoDB": {
        "command": "npx",
        "args": [
          "-y",
          "mongodb-mcp-server",
          "--connectionString",
          "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
        ]
      }
    }
    
  3. The file should look like this:
    {
      "mcpServers": {
        "MongoDB": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server",
            "--connectionString",
            "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
          ]
        },
        <<other servers>>
      }
    }
    

Visual Studio Code Setup

  1. Open the setting file at the root of your project:

    .vscode/mcp.json
    %appdata%/Roaming/Code/User/mcp.json
    
  2. Add the following lines to the file:
    "MongoDB": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
      ]
    }
    
  3. The file should look like this:
    {
    	"servers": {
        "MongoDB": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server",
            "--connectionString",
            "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/yourDB"
          ]
        },
         <<other servers>>
    	},
    	"inputs": []
    }
    

Microsoft Docs CMP Setup

Use the following configuration to connect to the Microsoft Docs CMP server.

{
  "servers": {
    "gnx-microsoft-mcp": {
      "url": "https://learn.microsoft.com/mcp",
      "type": "http"
    }
  },
   	"inputs": []
}

Visual Studio Setup

TBW