Cosmic logo

Cosmic

Manage Cosmic CMS content, schemas, media, reusable blocks, and AI-generated text, images, and video through MCP.

Install Cosmic

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cosmic": {
      "command": "npx",
      "args": [
        "-y",
        "@cosmicjs/mcp"
      ],
      "env": {
        "COSMIC_BUCKET_SLUG": "YOUR_VALUE_HERE",
        "COSMIC_READ_KEY": "YOUR_VALUE_HERE",
        "COSMIC_WRITE_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env COSMIC_BUCKET_SLUG=YOUR_VALUE_HERE --env COSMIC_READ_KEY=YOUR_VALUE_HERE --env COSMIC_WRITE_KEY=YOUR_VALUE_HERE --transport stdio cosmic -- npx -y @cosmicjs/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 19 tools correctly ().

Overview

Cosmic MCP server connects MCP clients to a Cosmic bucket for content, media, schema, reusable Content Block, and AI-generation operations. It supports a hosted streamable-HTTP endpoint as well as a local stdio package. Read keys enable listing and retrieval, while write keys unlock mutations, uploads, and generated media. Reach for Cosmic when an agent needs to manage headless CMS data or create content assets within a Cosmic project.

Use cases

  • Inspect and update blog posts in a Cosmic bucket
  • Upload media assets from URLs or base64 data
  • Create and modify Cosmic object-type schemas
  • Generate text and media for CMS content
  • List reusable rich-text Content Blocks

Key features

  • CRUD operations for Cosmic objects
  • Media listing, upload, and deletion
  • Object-type schema management
  • AI text, image, SVG, and video generation
  • Reusable Content Block discovery
  • Hosted HTTP and local stdio modes

Tools19

What Cosmic lets your agent do. Expand a tool for its parameters.

Verified live~2.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/30 checks healthy over the last 117d

What it can do

From the 19 tools this server returned when we ran it; 19 declare their own safety hints.

Can delete or modify data · 5Makes changes · 12Handles credentials · 1Makes network requests · 3Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age303 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @cosmicjs/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads623Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed19Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Cosmic works

What Cosmic MCP server does

Cosmic MCP server exposes a Cosmic bucket through Model Context Protocol tools. Agents can inspect, create, edit, and remove content objects; browse and manage media; and read or modify object-type schemas. It also lists reusable rich-text Content Blocks, represented by tokens such as {{name /}}.

The server includes Cosmic AI operations for generating text, producing an image or SVG and storing it in the media library, and producing and uploading a video. These capabilities make it suitable for agent workflows that combine structured CMS updates with content production.

How it works

The hosted service uses streamable HTTP. Its endpoint is scoped to a bucket slug:

text
https://mcp.cosmicjs.com/v1/buckets/{bucket-slug}

Authentication uses the bucket's read key, with the optional write key appended to the bearer value for full access:

text
Authorization: Bearer <read_key>
Authorization: Bearer <read_key>:<write_key>

Clients that cannot send the combined bearer value can provide the write key in the X-Cosmic-Write-Key header. Read-only access covers list and get operations. Creating, updating, or deleting content and schemas, uploading or deleting media, and generating uploaded images or videos require write access.

For environments that do not use remote MCP connections, the package provides a local stdio mode. The hosted and local modes expose the same server capabilities.

Setup and configuration

The hosted endpoint requires no local installation. Add the bucket URL to an MCP client and provide the appropriate bearer token. Cosmic documents remote setup for Claude Desktop and Cursor.

For local stdio use, run the package with npx @cosmicjs/mcp, install it globally with npm install -g @cosmicjs/mcp, or build it from source with Bun. Configure the process with:

  • COSMIC_BUCKET_SLUG: the target Cosmic bucket
  • COSMIC_READ_KEY: the key used for read operations
  • COSMIC_WRITE_KEY: the optional key needed for write operations

Keys and the bucket slug are available from the bucket's Settings → API Access area in the Cosmic dashboard. Local Claude Desktop and Cursor configurations start the package with npx and pass these values as environment variables.

Tools and capabilities

Object tools support filtered and paginated listing, lookup by ID or slug, and full create, update, and delete operations. Listings can filter by object type and status.

Media tools list files, optionally by folder, retrieve file details, upload from a URL or base64 data, and delete files.

Object-type tools list schemas, retrieve a schema by slug, and create, update, or delete object types with their custom metafields. The Content Blocks tool lists reusable rich-text blocks available in the bucket.

AI tools generate text, generate and upload images or SVGs, and generate and upload videos. Write access is required for the generation operations that store media.

Limitations and notes

Access is scoped to a Cosmic bucket and depends on its API credentials. A read key is sufficient for inspection but cannot perform mutations or write-enabled generation tasks. Operations that change content, schemas, or media should use a write key and therefore grant broader access than read-only configurations.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cosmic

Cosmic is an MCP server that connects AI clients to Cosmic CMS buckets. Its main tools manage content objects, media files, object-type schemas, reusable rich-text Content Blocks, and AI-generated text, images, SVGs, and videos. Read keys support inspection, while write keys enable updates, uploads, deletions, and stored generation results.

Use the hosted endpoint without installing anything, or run `npx @cosmicjs/mcp` for local stdio mode. Local setups can also install the package globally with npm or build it from source with Bun. Configure the bucket slug and read key, plus a write key for write operations.

Yes, Cosmic works with Cursor through either the hosted streamable-HTTP endpoint or a local stdio configuration. Add the bucket URL and an Authorization header for remote access, or launch `npx @cosmicjs/mcp` with the required Cosmic environment variables.

The server needs a Cosmic bucket slug and read key, while the write key is optional for read-only use. Supply the keys through bearer authentication for the hosted endpoint or through `COSMIC_BUCKET_SLUG`, `COSMIC_READ_KEY`, and optionally `COSMIC_WRITE_KEY` in local stdio mode.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCosmic AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cosmic?style=directory)](https://allmcps.com/mcp/cosmic)
HTML Embed
<a href="https://allmcps.com/mcp/cosmic"><img src="https://allmcps.com/api/badge/cosmic?style=directory" alt="Cosmic on AllMCPs" /></a>