Cosmic MCP Server
by cosmicjscom.cosmicjs/mcpv1.6.0
Manage Cosmic CMS content, media, object types, and AI generation from any MCP client.
context tax
queued
security
queued
cold start
queued
freshness
Active4d ago
Install Cosmic MCP server
Install in Claude Code
claude mcp add cosmicjs -e COSMIC_BUCKET_SLUG='<cosmic-bucket-slug>' -e COSMIC_READ_KEY='<cosmic-read-key>' -e COSMIC_WRITE_KEY='<cosmic-write-key>' -- npx -y @cosmicjs/mcpInstall in Cursor
{
"mcpServers": {
"cosmicjs": {
"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 (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"cosmicjs": {
"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>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"cosmicjs": {
"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 .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"cosmicjs": {
"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.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| COSMIC_BUCKET_SLUG | yes | — | Slug of the Cosmic bucket to operate on |
| COSMIC_READ_KEY | yes | yes | Bucket read key. Enables the read-only tools |
| COSMIC_WRITE_KEY | — | yes | Bucket write key. Required for create, update, delete, and AI generation |
Remote endpoints
- streamable-http
https://mcp.cosmicjs.com/v1/buckets/{bucket_slug}
Freshness
Active — last maintenance signal 4d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-06 · 4d ago · GitHub
Latest release
2026-09-09 · 31d ago · GitHub · v1.7.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-31 · 2mo ago · official registry · v1.6.0
FAQ
›How do I install the Cosmic MCP server in Claude Code?
Run: claude mcp add cosmicjs -e COSMIC_BUCKET_SLUG='<cosmic-bucket-slug>' -e COSMIC_READ_KEY='<cosmic-read-key>' -e COSMIC_WRITE_KEY='<cosmic-write-key>' -- npx -y @cosmicjs/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Cosmic require an API key?
Yes. It expects COSMIC_BUCKET_SLUG, COSMIC_READ_KEY, COSMIC_WRITE_KEY, of which 2 are secrets.
›Can I use Cosmic as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Cosmic in the official MCP registry?
Yes, as com.cosmicjs/mcp.