• READ
  • WRITE
  • CHECK
  • REVIEW

How to query and update content with your AI

Connect your AI to DatoCMS to pull specific data or change existing records using plain text commands.

Ask AI about this page

Short answer

How can I query and update DatoCMS content with AI?

Your AI uses GraphQL to find specific records and can patch existing entries based on your instructions. You get direct control over your CMS data without writing code or manual queries.

Data outcomes

Where your data lands

What happens when you give your AI a command.

READ

Targeted data retrieval

The AI pulls specific fields or entire records using GraphQL. You get the exact data you asked for without browsing the CMS UI.

WRITE

Record updates

Your AI modifies existing entries. It changes specific fields in your CMS to match your natural language requests.

CHECK

Single record lookups

The AI fetches a specific item by its ID. This is how it verifies information before making changes.

REVIEW

Human oversight

You decide which changes are final. The AI prepares the updates, but you maintain control over the actual CMS state.

The workflow

What your AI does when the request arrives.

The AI translates your words into specific CMS actions.

  1. Find the data

    The AI searches your content structure to find the right information using GraphQL queries.

    execute_graphql_cda
  2. Fetch a record

    If it needs to see a specific entry's details, it pulls that single record directly.

    get_single_record
  3. Apply changes

    Once it knows what to change, the AI sends the update to the specific record in your CMS.

    patch_cms_record
  4. Confirm results

    The AI uses the data it just pulled to verify the update worked as intended.

    get_single_record

Try it

Copy these to start.

Use these prompts to begin interacting with your CMS.

Starting points

Replace the bracketed text with your actual DatoCMS model names or record IDs.

DatoCMS Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_kqbiRIDEEpzmpnqcg7HU2AYruJAL07EBAujlMqZU/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 — DatoCMS capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "datocms-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_kqbiRIDEEpzmpnqcg7HU2AYruJAL07EBAujlMqZU/mcp"
    }
  }
}
Copy into chat04
  • Find all the blog posts written by 'Jane Doe' in my DatoCMS.

  • Get the details for the record with ID '12345'.

  • Update the title of the 'Summer Campaign' article to 'Summer Sale 2024'.

  • Check the current status of the 'Homepage Hero' entry.

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

Start here

Connect DatoCMS once, then ask.

Follow the link to connect your account. Your credentials stay encrypted, and you can start chatting with your data immediately.

Connect DatoCMS to your AI

FAQ

How this task behaves

  • 01

    Can the AI create brand new records?

    No. The current tools only allow for querying existing data and patching existing records.

  • 02

    Can the AI delete content?

    No. There is no tool available to delete records, so your content stays safe.

  • 03

    Does the AI need to know GraphQL?

    No. You talk in plain English, and the AI handles the GraphQL queries for you.

  • 04

    Can I use this with any AI client?

    Yes, as long as the client supports the Model Context Protocol (MCP).

  • 05

    Will the AI change my data without me knowing?

    The AI performs the actions you command, but you can always review the changes in your DatoCMS dashboard.

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

Connect DatoCMS to Claude, Cursor, ChatGPT & more