← Back to Plugins
MCP Server MCP

Cosmic

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y @cosmicjs/mcp@1.6.0

Configuration Example

{
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://mcp.cosmicjs.com/v1/buckets/{bucket_slug}",
      "headers": [
        {
          "description": "Bearer <read_key> for reads, or Bearer <read_key>:<write_key> to allow writes",
          "isRequired": true,
          "isSecret": true,
          "name": "Authorization"
        }
      ],
      "variables": {
        "bucket_slug": {
          "description": "Slug of the Cosmic bucket to operate on",
          "isRequired": true
        }
      }
    }
  ],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@cosmicjs/mcp",
      "version": "1.6.0",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "Slug of the Cosmic bucket to operate on",
          "isRequired": true,
          "name": "COSMIC_BUCKET_SLUG"
        },
        {
          "description": "Bucket read key. Enables the read-only tools",
          "isRequired": true,
          "isSecret": true,
          "name": "COSMIC_READ_KEY"
        },
        {
          "description": "Bucket write key. Required for create, update, delete, and AI generation",
          "isSecret": true,
          "name": "COSMIC_WRITE_KEY"
        }
      ]
    }
  ]
}
mcp model-context-protocol streamable-http npm

Comments

Sign in to leave a comment

Loading comments...