Frequently Asked Questions

Getting Started & Setup

What is the Hygraph MCP server and who can access it?

The Hygraph MCP (Model Context Protocol) server enables secure communication between AI assistants and your Hygraph project. It is available for all Hygraph projects and is currently in Early Access. Features may change, and production use should be evaluated accordingly. Learn more.

What are the prerequisites for setting up the Hygraph MCP server?

To set up the MCP server, you need Node.js (version >= 20.18.1), npx (included with Node.js), an active Hygraph project with at least one environment, and a Permanent Auth Token (PAT) with the appropriate permissions. See prerequisites.

How do I create a Permanent Auth Token (PAT) for the MCP server?

In your Hygraph project, go to Project Settings > Access > Permanent Auth Tokens. Click 'Generate MCP PAT', select the required permissions, and copy the generated token. For detailed steps, see Step 1 — Create a PAT.

How do I find my MCP Server API endpoint?

In your Hygraph project, go to Project Settings > Access > Endpoints. Under MCP Server API, copy the endpoint in the format: https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp. Learn more.

How do I configure my MCP client for Hygraph?

Configuration steps depend on your client (Claude Code, Cursor IDE, VS Code, Windsurf IDE, Claude Desktop). Each client has specific instructions for adding the MCP server, setting the authorization header, and verifying the connection. See the official guide for details.

How can I set up multi-environment configuration for the MCP server?

For production use, it's recommended to use separate tokens per environment (e.g., production, staging). You can configure multiple MCP servers in your client configuration files, each with its own endpoint and token. See multi-environment configuration for examples.

How do I verify that my MCP server connection is working?

After setup, ask your AI assistant to list content models or fields in your Hygraph project. If accurate results are returned, the connection is working. You can also check in Hygraph Studio to confirm changes. Learn more.

What are some first tasks to try with the MCP server?

Try listing all entries with status DRAFT, creating and publishing a test entry, or modifying a content model's structure. Verify results in Hygraph Studio to ensure permissions and setup are correct. See examples.

What are best practices for storing and managing MCP server tokens?

Store tokens in environment variables and never commit them to remote repositories. Set up secret management in CI/CD pipelines and create role-specific tokens for different workflows. Regularly audit token usage for security. Read more.

Permissions & Security

What permissions are required for the MCP server to function?

The MCP server requires a Permanent Auth Token (PAT) with Read, Create, Update, and Publish permissions for full functionality. For read-only access, only the Read permission is needed. Delete operations are never supported via MCP. See permissions reference.

Can the MCP server perform delete operations on content or schema?

No, delete operations are never supported via the MCP server for both content and schema. Destructive actions must be performed manually in Hygraph Studio. Learn more.

How do I configure permissions for Permanent Auth Tokens in Hygraph?

Permissions for PATs can be configured in Project Settings > Access > Permanent Auth Tokens. Assign the necessary permissions (Read, Create, Update, Publish, Schema management) based on your workflow needs. See documentation.

What security best practices should I follow when using the MCP server?

Follow these best practices: use environment variables for tokens, set up secret management, create role-specific tokens, use read-only tokens for read-only workflows, configure API permissions, and audit token usage regularly. Read more.

What security and compliance certifications does Hygraph hold?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. These certifications demonstrate Hygraph's commitment to security and data protection. See Secure Features.

How does Hygraph ensure secure API access for the MCP server?

Hygraph enforces secure API access through custom origin policies, IP firewalls, SSL certificates for all endpoints, and encrypted data in transit and at rest. Regular audits and compliance with GDPR, BDSG, and TMG further enhance security. Learn more.

Troubleshooting & Error Handling

What should I do if I get a 401 Authorization failed error?

Verify your token works in the Hygraph API playground, check that it has the correct permissions, and confirm the header format is correct (Authorization: Bearer YOUR_TOKEN). See troubleshooting steps.

Why are MCP tools not showing or queries failing in my client?

Required tools may be disabled. In your AI assistant settings, go to Connectors, configure the Hygraph MCP connector, and ensure the required tools are enabled. You can allow all tools or enable specific ones. Learn more.

What should I do if the MCP server is not found?

For Cursor/Windsurf, verify npx is available and test mcp-remote directly. For Claude Code, check your config and logs. For Claude Desktop, ensure your Node.js version is >= 22. See troubleshooting.

How do I resolve MCP server tools not being displayed?

Restart your IDE or MCP client, check the MCP server status in your client's settings, review server logs, and verify network access and token permissions. Learn more.

What should I do if I have mcp-remote connection issues?

Update to the latest version of mcp-remote, use the absolute npx path in your config, and ensure your Node.js version is >= 20.18.1. See npm page.

Features & Capabilities

What features does the Hygraph MCP server provide?

The MCP server enables secure, programmatic access to your Hygraph project for AI assistants, supporting content queries, schema inspection, and workflow automation via natural language. It supports multiple clients and environments. See overview.

Which clients are supported for connecting to the MCP server?

The MCP server supports Claude Code, Cursor IDE, VS Code, Windsurf IDE, and Claude Desktop. Each client has specific setup instructions. See client setup.

Does Hygraph provide an API for content and management operations?

Yes, Hygraph provides multiple APIs: the GraphQL Content API for querying and manipulating content, the Management API for project structure, the Asset Upload API, and the MCP Server API for AI assistant integration. See API Reference.

What technical documentation is available for the MCP server and Hygraph APIs?

Hygraph offers comprehensive technical documentation, including API references, schema guides, integration tutorials, and AI feature documentation. Access all resources at Hygraph Documentation.

What integrations are available with Hygraph?

Hygraph integrates with Digital Asset Management (DAM) systems (e.g., Aprimo, AWS S3, Bynder, Cloudinary), hosting platforms (Netlify, Vercel), PIM (Akeneo), commerce solutions (BigCommerce), and translation/localization tools (EasyTranslate). See all integrations.

How does Hygraph ensure high performance for content delivery?

Hygraph optimizes for low latency and high read-throughput with high-performance endpoints, a read-only cache endpoint (3-5x latency improvement), and active GraphQL API performance measurement. Read more.

Use Cases & Benefits

Who can benefit from using the Hygraph MCP server?

Developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies benefit from the MCP server for automating workflows, integrating AI assistants, and managing content efficiently. Learn more.

What problems does Hygraph solve for content teams?

Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow inefficiencies, high operational costs, slow speed-to-market, and integration challenges. See more.

What business impact can customers expect from using Hygraph?

Customers can expect faster time-to-market (e.g., Komax achieved 3x faster launches), improved customer engagement (Samsung saw a 15% increase), cost reduction, enhanced content consistency, and scalability. See case studies.

What feedback have customers given about Hygraph's ease of use?

Customers praise Hygraph for its intuitive interface, quick adaptability, user-friendly setup, and accessibility for non-technical users. Reviews highlight the clear UI and efficient workflows. See reviews.

How long does it take to implement Hygraph and the MCP server?

Implementation time varies by project complexity. Case studies show launches within 1-2 months (e.g., Voi migrated from WordPress in 1-2 months, Top Villas launched in 2 months). Extensive documentation and starter projects accelerate onboarding. See onboarding guide.

What industries use Hygraph and the MCP server?

Hygraph is used in SaaS, marketplace, education technology, media, healthcare, consumer goods, automotive, technology, fintech, travel, food and beverage, eCommerce, agency, gaming, events, government, consumer electronics, engineering, and construction. See all industries.

Can you share examples of customers successfully using Hygraph?

Yes. Samsung improved engagement by 15%, Komax achieved 3x faster time-to-market, AutoWeb increased monetization by 20%, and Voi scaled multilingual content across 12 countries. See customer stories.

Why should a customer choose Hygraph over other CMS solutions?

Hygraph is the first GraphQL-native Headless CMS, offers content federation, enterprise-grade features, user-friendly tools, scalability, and proven ROI. It ranked 2nd out of 102 Headless CMSs in the G2 Summer 2025 report. See why customers choose Hygraph.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

Help teams manage content creation and approval in a clear and structured way
Hygraph
Docs

#Set up the MCP server

This guide walks you through connecting an AI assistant to your Hygraph project. For an overview of what the MCP server can do, see MCP server overview.

#Prerequisites

Before you begin, ensure you have:

RequirementDetails
Node.js>= 20.18.1 (required for mcp-remote)
npxIncluded with Node.js. Verify with which npx
Hygraph projectWith at least one environment configured
Permanent Auth Token (PAT)See Step 1 below

#Permissions reference

All MCP operations are governed by the permissions on your Permanent Auth Token (PAT).

To fully leverage the MCP server's functionality, you need the Read, Create, Update, and Publish permissions. If you only intend to retrieve content, the Read permission is sufficient. For more information on setting up these permissions, see our docs on Configuring permissions for Permanent Auth Tokens.

PAT typeReadCreateUpdatePublishSchema managementDelete
General MCP Server
Management MCP Server
Content MCP Server
Read-only (custom)

Delete operations are never supported via MCP, for both content and schema. Destructive actions must be performed manually in Hygraph Studio. For more information, see Safety guardrails.

#Step 1 — Create a PAT

Hygraph MCP authenticates using a bearer token. You need to supply the Permanent Auth Token (PAT) as the bearer token.

If you haven’t created a PAT yet, follow these steps:

  1. In your Hygraph project, go to Project Settings.
  2. Under Access, select Permanent Auth Tokens.
  3. Click Generate MCP PAT.
  4. Choose the appropriate permission set (see Permissions reference), then click Generate MCP PAT.
  5. Copy the generated token.

If you've previously created a PAT and want to use it for the MCP server, follow these steps:

  1. In your Hygraph project, go to Project Settings.
  2. Under Access, click Permanent Auth Tokens.
  3. Copy the PAT that you want to use to configure the MCP server.

#Step 2 — Get your MCP endpoint

To find the MCP Server API endpoint, follow these steps:

  1. In your Hygraph project, go to Project Settings.
  2. Under Access, select Endpoints.
  3. Under MCP Server API, copy the endpoint.
    https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp

#Step 3 — Configure your MCP client

Each MCP client handles HTTP servers and authentication differently. Choose your client:

#Claude Code

Claude Code has native HTTP MCP support with auth headers and does not require mcp-remote.

Recommended: Use an environment variable.

export HYGRAPH_TOKEN="your_token_here"
claude mcp add hygraph https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp \
--transport http \
--header "Authorization: Bearer ${HYGRAPH_TOKEN}"

Alternative: Use an inline token.

claude mcp add hygraph https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp \
--transport http \
--header "Authorization: Bearer YOUR_HYGRAPH_TOKEN"

Scope options:

FlagEffect
--scope localThis project only (default)
--scope userAll your projects
--scope globalSystem-wide

Verify the setup:

# list configured servers
claude mcp list
claude
> /mcp
# Hygraph should appear in the list

If you see errors, run claude mcp logs hygraph or see Troubleshooting.

#Cursor IDE

Cursor uses mcp-remote to connect to HTTP MCP endpoints.

Recommended method: Use the one-click install from Hygraph Studio to install the MCP server in Cursor.

  1. In your Hygraph project, go to Project Settings.
  2. Under Access, select Endpoints.
  3. Under MCP Server API, click Add to Cursor.
  4. Select the Permanent Auth Token you want to use for the MCP server.
  5. Click Add to Cursor. When prompted, open Cursor. You are redirected to the MCP server setup page in Cursor.
  6. Review the settings and click Install. You should see the MCP server listed in the MCP Servers section in Cursor.

Alternate method: Install the MCP server manually.

  1. In Cursor, navigate to Settings.

  2. In the MCP Servers section, click Add Server or Add Custom MCP.

  3. Paste one of the following configurations:

    • Project-specific configuration: In the .cursor/mcp.json file in your repository
    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "-y",
    "mcp-remote@latest",
    "https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
    "--header",
    "Authorization: Bearer YOUR_TOKEN_HERE"
    ]
    }
    }
    }
    • Global: Add to your user-level ~/.cursor/mcp.json file.
    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "-y",
    "mcp-remote@latest",
    "https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
    "--header",
    "Authorization: Bearer ${HYGRAPH_TOKEN}"
    ],
    "env": {
    "HYGRAPH_TOKEN": "your_token_here"
    }
    }
    }
    }

#VS Code

VS Code has built-in MCP support. Add the following to .vscode/mcp.json:

{
"servers": {
"hygraph": {
"url": "https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
"type": "http",
"headers": {
"Authorization": "Bearer ${HYGRAPH_TOKEN}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "HYGRAPH_TOKEN",
"description": "Hygraph API Token",
"password": true
}
]
}

Alternatively, use mcp-remote:

{
"servers": {
"hygraph": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
"--header",
"Authorization: Bearer ${HYGRAPH_TOKEN}"
],
"env": {
"HYGRAPH_TOKEN": "your_token_here"
}
}
}
}

For more information, see the VS Code MCP docs.

#Windsurf IDE

  1. Go to Windsurf Settings → Cascade → MCP Servers → Add Server.

  2. In ~/.codeium/windsurf/mcp_config.json, add:

    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "-y",
    "mcp-remote@latest",
    "https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
    "--header",
    "Authorization: Bearer ${HYGRAPH_TOKEN}"
    ],
    "env": {
    "HYGRAPH_TOKEN": "your_token_here"
    }
    }
    }
    }
  3. Click Refresh Servers.

#Claude Desktop

  1. Open the config file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/config.json

    If you can't find the config file, in Claude Desktop, go to Settings → Developer → Edit Config.

  2. Add the following:

    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "mcp-remote@latest",
    "https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp",
    "--header",
    "Authorization: Bearer YOUR_HYGRAPH_TOKEN"
    ]
    }
    }
    }
  3. Quit and reopen Claude Desktop.

#Multi-environment configuration

For production use, we recommend using separate tokens per environment. The example below uses mcp-remote, which is compatible with Cursor, Windsurf, and Claude Desktop. For Claude Code, replace the command/args block with the --transport http syntax shown in the Claude Code section above.

{
"mcpServers": {
"hygraph-prod": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/master/mcp",
"--header",
"Authorization: Bearer ${HYGRAPH_PROD_TOKEN}"
],
"env": {
"HYGRAPH_PROD_TOKEN": "token_here"
}
},
"hygraph-staging": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/staging/mcp",
"--header",
"Authorization: Bearer ${HYGRAPH_STAGING_TOKEN}"
],
"env": {
"HYGRAPH_STAGING_TOKEN": "token_here"
}
}
}
}

#Start using the MCP server

Once your MCP server is running, verify the connection is working by asking your AI assistant a simple question about your project:

  • What content models exist in my Hygraph project?
  • List the fields on my content models.

If the assistant returns accurate results, your connection is set up correctly. If not, see Troubleshooting.

First tasks to try:

  • List all entries with status DRAFT. This confirms read access is working.
  • Create a test entry and publish it. This confirms write and publish permissions are working.
  • Show me the structure of my Productmodel, and add a field to it. This confirms schema access is working.

Verify in Hygraph Studio:

After trying the tasks above, go to Hygraph Studio and check the results directly:

  • Open the Content section to confirm new or updated entries appear as expected.
  • Check the Schema section to verify any models or fields that were created.
  • Review entry status to confirm published entries are live.

This is a good way to confirm that the AI assistant's actions have taken effect.

Tips for better results:

  • Be specific about model names and field names. Your AI assistant will use them exactly as given.
  • For bulk operations, describe the filter criteria clearly before stating the action. For example: Find all entries tagged urgent and update their priority to High.
  • If a result is unexpected, ask the assistant to explain what query it ran. This helps catch permission or field name issues quickly.

Watch the following video for a practical demonstration of the Hygraph MCP server in action. This video walks through setting up and interacting with the MCP server from Cursor, showing how AI assistants can query content, inspect schema, and perform workflows using natural language.

#Security best practices

Token storage:

  • Use environment variables to store tokens. Do not commit tokens to a remote repository.
  • Set up secret management in CI/CD.

Token permissions:

  • Create role-specific tokens in Hygraph.
  • Use read-only tokens for read-only workflows.

Access control:

#Troubleshooting

#401 Authorization failed

  • Verify the token works in the Hygraph API playground.
  • Check the token has the correct permissions for the operation (see Permissions reference).
  • Confirm the header format is correct with no extra quotes or spaces: Authorization: Bearer YOUR_TOKEN.

#MCP tools not showing or queries failing

If the MCP server connects but you cannot run queries or create entries, required tools might be disabled:

  1. In your AI assistant settings, go to Connectors.
  2. Find the Hygraph MCP connector and click Configure.
  3. Review tool permissions, and ensure the required tools are enabled. You can set Allow all tools for simplicity, or use Custom to enable specific tools.

#Server not found

For Cursor / Windsurf (stdio clients):

Verify npx is available:

which npx

Test mcp-remote directly:

npx -y mcp-remote@latest YOUR_ENDPOINT --header "Authorization: Bearer TOKEN"

For Claude Code:

claude mcp get hygraph # check config
claude mcp logs hygraph # check logs

For Claude Desktop:

If you’re using NPM to manage Node versions, make sure you uninstall any NPM versions earlier than 22.

#MCP server tools not displayed

  1. Restart your IDE or MCP client.
  2. Check the MCP server status in your client's settings.
  3. Review server logs.
  4. Verify network access to Hygraph endpoint, and permissions associated with the Hygraph token.

#mcp-remote connection issues

mcp-remote is required for stdio-based clients (Cursor, Windsurf, Claude Desktop) to connect to HTTP endpoints. If you face mcp-remote connection issues, you can:

  • Update to the latest version: npm install -g mcp-remote@latest
  • Use the absolute npx path in your config (which npx to find it).
  • Ensure Node.js version is >= 20.18.1.

For more, see the mcp-remote npm page.