• STRUCTURE
  • REVISION
  • CLEANUP
  • REVIEW

How to modify content schemas with your AI

Connect Cosmic to your AI client once. After that, you can reshape your entire content architecture through natural language.

Ask AI about this page

Short answer

Can I change my Cosmic content models using AI?

Yes. You can add, update, or remove object types and their structures using your AI client. This allows you to manage your headless CMS schema without touching the Cosmic UI.

Schema management outcomes.

Where your schema changes land.

The AI handles the structural heavy lifting.

STRUCTURE

New object types

The AI builds fresh object types based on your requirements. You get new schema definitions ready for content immediately.

REVISION

Updated schemas

Modify existing object types to add or change fields. Your content model stays in sync with your application needs.

CLEANUP

Removed objects

Delete outdated or redundant object types. This keeps your Cosmic environment clean and organized.

REVIEW

Human oversight

You review the proposed changes before they go live. This ensures your schema logic remains sound.

The workflow

What your AI does when the request arrives.

The AI translates your intent into specific API calls to Cosmic.

  1. Audit current schema

    The AI looks at your existing setup to understand what you already have in place.

    list_object_types
  2. Create new types

    When you need a new content model, the AI builds the object type for you.

    create_object_type
  3. Modify existing models

    The AI adjusts the properties or fields of your current object types.

    update_object_type
  4. Remove old data models

    The AI wipes out object types that are no longer needed in your project.

    delete_object_type

Try it

Copy these to start.

Use these prompts to begin managing your schema.

Starting points

Swap out the bracketed text for your actual Cosmic object names.

Cosmic Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_y2ynjJhQkEayFecto8VFFnli76mgjWmwXZolbG6r/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Cosmic capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cosmic-headless-cms-content-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_y2ynjJhQkEayFecto8VFFnli76mgjWmwXZolbG6r/mcp"
    }
  }
}
Copy into chat04
  • List all the current object types in my Cosmic project.

  • Create a new object type called [Blog Post] with fields for title and body.

  • Update the [Product] object type to include a new field for price.

  • Delete the [Old Category] object type from my Cosmic schema.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Cosmic once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing your schema immediately.

Connect Cosmic to your AI

FAQ

How the schema modification works.

  • 01

    Can the AI change individual fields inside an object?

    Yes, by using the tool to update the object type's structure.

  • 02

    Will the AI delete my content automatically?

    No. The tools only manage object types, not the individual content entries inside them.

  • 03

    Can I use this to create new content entries?

    No. This specific set of tools is for managing the schema and object types, not for creating content records.

  • 04

    Does the AI need access to my Cosmic dashboard?

    No. Once connected, the AI interacts with the API directly through the tools.

  • 05

    Can the AI delete an entire object type?

    Yes, it has the capability to remove object types from your schema.

  • More questions about Cosmic? See everything the Cosmic Connector can do

Connect Cosmic to Claude, Cursor, ChatGPT & more