Cosmicjs MCP server
{
"mcpServers": {
"cosmic": {
"type": "http",
"url": "https://mcp.cosmicjs.com/v1/buckets/your-bucket-slug"
}
}
}{
"mcpServers": {
"cosmic": {
"type": "http",
"url": "https://mcp.cosmicjs.com/v1/buckets/your-bucket-slug"
}
}
}{
"mcpServers": {
"cosmic": {
"type": "http",
"url": "https://mcp.cosmicjs.com/v1/buckets/your-bucket-slug"
}
}
}{
"servers": {
"cosmic": {
"type": "http",
"url": "https://mcp.cosmicjs.com/v1/buckets/your-bucket-slug"
}
}
}{
"mcpServers": {
"cosmic": {
"type": "http",
"url": "https://mcp.cosmicjs.com/v1/buckets/your-bucket-slug"
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @cosmicjs/mcpversion 1.6.0
What it does
This MCP server exposes Cosmic CMS functionality for managing content, media, object types, and AI generation. It is for developers using Claude, Cursor, or other MCP-compatible clients who want to interact with their Cosmic CMS bucket programmatically.
- List, create, update, and delete content objects in your Cosmic bucket from an AI assistant.
- Upload and manage media files to your bucket without leaving your MCP client.
- Generate AI-created text, images, and videos and save them directly to your Cosmic bucket.
Tools this server exposes
| Tool | Does |
|---|---|
| cosmic_objects_list | List objects in the bucket with optional filtering by type, status, and pagination. |
| cosmic_objects_get | Retrieve a single object by ID or slug. |
| cosmic_objects_create | Create a new object in the bucket. |
| cosmic_objects_update | Update an existing object. |
| cosmic_objects_delete | Delete an object from the bucket. |
| cosmic_media_list | List media files with optional folder filtering. |
| cosmic_media_get | Retrieve media file details by ID. |
| cosmic_media_upload | Upload media from a URL or base64-encoded data. |
| cosmic_media_delete | Delete a media file from the bucket. |
| cosmic_types_list | List all object types (schemas) in the bucket. |
| cosmic_types_get | Retrieve object type schema by slug. |
| cosmic_types_create | Create a new object type with custom metafields. |
| cosmic_types_update | Update an existing object type schema. |
| cosmic_types_delete | Delete an object type from the bucket. |
| cosmic_ai_generate_text | Generate text content using AI. |
| cosmic_ai_generate_image | Generate an AI image and upload it to the bucket. |
| cosmic_ai_generate_video | Generate an AI video and upload it to the bucket. |
| cosmic_blocks_list | List reusable rich-text Content Blocks available in the bucket. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.