Skip to content
MCP server

Cosmic

Manage Cosmic CMS content, media, object types, and AI generation from any MCP client.

Install
Pricing
Open source
Runs
Locally or Remotely
Version
1.7.1
Listing updated
5 days ago

About Cosmic

Cosmic is an open-source MCP server. It can run locally on your machine or as a hosted remote server.

Install

Run in a terminal

claude mcp add mcp --env COSMIC_BUCKET_SLUG='<COSMIC_BUCKET_SLUG>' --env COSMIC_READ_KEY='<COSMIC_READ_KEY>' --env COSMIC_WRITE_KEY='<COSMIC_WRITE_KEY>' -- npx -y @cosmicjs/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "<COSMIC_BUCKET_SLUG>",
        "COSMIC_READ_KEY": "<COSMIC_READ_KEY>",
        "COSMIC_WRITE_KEY": "<COSMIC_WRITE_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "<COSMIC_BUCKET_SLUG>",
        "COSMIC_READ_KEY": "<COSMIC_READ_KEY>",
        "COSMIC_WRITE_KEY": "<COSMIC_WRITE_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "<COSMIC_BUCKET_SLUG>",
        "COSMIC_READ_KEY": "<COSMIC_READ_KEY>",
        "COSMIC_WRITE_KEY": "<COSMIC_WRITE_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "<COSMIC_BUCKET_SLUG>",
        "COSMIC_READ_KEY": "<COSMIC_READ_KEY>",
        "COSMIC_WRITE_KEY": "<COSMIC_WRITE_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "<COSMIC_BUCKET_SLUG>",
        "COSMIC_READ_KEY": "<COSMIC_READ_KEY>",
        "COSMIC_WRITE_KEY": "<COSMIC_WRITE_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • COSMIC_BUCKET_SLUGSlug of the Cosmic bucket to operate onRequired
  • COSMIC_READ_KEYBucket read key. Enables the read-only toolsRequired
  • COSMIC_WRITE_KEYBucket write key. Required for create, update, delete, and AI generation

Pricing

Open source

Prices change. Check cosmicjs.com before you buy.

Cosmic FAQ

Is Cosmic free?

Yes. Cosmic is open source, so you can use and self-host it for free.

How do I add Cosmic to Claude Code?

Run this command in your terminal: claude mcp add mcp --env COSMIC_BUCKET_SLUG='<COSMIC_BUCKET_SLUG>' --env COSMIC_READ_KEY='<COSMIC_READ_KEY>' --env COSMIC_WRITE_KEY='<COSMIC_WRITE_KEY>' -- npx -y @cosmicjs/mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers