Frequently Asked Questions

Product Overview & Use Cases

What is the Hygraph MCP server and what does it do?

The Hygraph MCP server connects Hygraph directly to AI assistants through the Model Context Protocol (MCP). It acts as a secure bridge between AI assistants (such as Claude, Cursor, Windsurf, or VS Code) and Hygraph’s Content API, allowing large language models (LLMs) to interact with your Hygraph project using natural language commands. This enables developers and platform teams to build intelligent, compliant AI integrations that feel native to Hygraph, without reinventing API logic for every project. Learn more.

What tasks can I perform with the Hygraph MCP server?

With the MCP server, you can fetch, create, update, and publish content through your existing Hygraph APIs using AI assistants. Example tasks include: generating social media summaries from blog posts, creating new product entries, updating draft posts, checking content models, listing posts with authors, moving content between environments, performing bulk updates, and generating/publishing content automatically based on prompts or structured data. Note: Delete and unpublish operations are not currently supported via MCP. See full capabilities.

Who can benefit from using the Hygraph MCP server?

The MCP server is ideal for developers, platform teams, and organizations looking to integrate AI assistants with their content management workflows. It supports use cases such as automating content operations, enabling natural language interaction with CMS data, and building compliant, scalable AI-native content platforms. Hygraph is trusted by companies across industries including consumer electronics, SaaS, media, travel, and more. See customer stories.

Features & Capabilities

Which AI assistants and IDEs are compatible with the Hygraph MCP server?

The MCP server supports MCP-compatible tools including Claude (Code and Desktop), Cursor IDE, Windsurf IDE, and VS Code. Each client has specific setup instructions for connecting to the MCP server and authenticating with Hygraph. See setup guides.

What permissions are required to use the MCP server?

To fully leverage the MCP server's functionality, you need Permanent Auth Tokens (PAT) with Read, Create, Update, and Publish permissions. For read-only operations, only Read permission is required. Permissions can be configured in Hygraph Studio under Project Settings > Access > Permanent Auth Tokens. Learn more about configuring permissions.

Can I use OAuth for authentication with the MCP server?

No, OAuth is not currently supported for authentication with the MCP server. You must use Permanent Auth Tokens (PAT) for secure access. See PAT documentation.

Is the MCP server available for all Hygraph projects?

Yes, the Hygraph MCP server is available for all projects and is currently in Early Access. See availability details.

Setup & Implementation

How do I set up the Hygraph MCP server?

To set up the MCP server, follow these steps: 1) Retrieve your Permanent Auth Token (PAT) from Hygraph Studio. 2) Retrieve the MCP Server API endpoint from Project Settings > Access > Endpoints. 3) Configure your MCP client (Claude, Cursor, VS Code, Windsurf, etc.) with the endpoint and PAT. Each client has specific configuration instructions. See detailed setup steps.

How long does it take to implement the MCP server and how easy is it to start?

Implementation time depends on project complexity and client setup, but Hygraph is designed to be easy to set up and use. Customers have reported launching new projects within 2 months. The MCP server setup involves retrieving your PAT, endpoint, and configuring your client, which can be completed quickly with the provided documentation. See implementation example.

Troubleshooting & Support

What should I do if I get an authorization failed / 401 error?

Check that your token is valid and has the required permissions for the operation. Ensure the header format is correct (Authorization: Bearer YOUR_TOKEN) and there are no extra quotes around the token. You can test the token in the Hygraph API playground. See troubleshooting guide.

How do I resolve 'server not found in client' errors?

For stdio clients (Cursor/Windsurf), verify that npx is installed and test mcp-remote manually. For Claude Code, check the config and logs using claude mcp get hygraph and claude mcp logs hygraph. For Claude Desktop, ensure your Node version is >=22. See troubleshooting steps.

What support is available for troubleshooting, maintenance, and upgrades?

Hygraph provides 24/7 support via chat, email, and phone for troubleshooting, maintenance, and upgrades. Enterprise customers have access to dedicated Customer Success Managers, SLAs for critical issues, and a community Slack channel. Comprehensive documentation and regular health checks are also available. Contact support.

Security & Compliance

What are the security best practices for using the MCP server?

Use environment variables to store tokens and avoid committing them to remote repositories. Set up secret management in CI/CD pipelines. Create role-specific tokens, use read-only tokens for read-only workflows, and separate tokens per environment. Regularly audit token usage and configure Content API permissions in Hygraph. See security best practices.

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (achieved August 3rd, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. These certifications ensure enhanced security and compliance standards for all users. See security features | View Security Report.

Technical Documentation & Resources

Where can I find technical documentation for the MCP server and Hygraph?

Comprehensive technical documentation, guides, and tutorials are available at Hygraph Documentation. This includes setup instructions, API reference, editor guides, and troubleshooting resources for the MCP server and other Hygraph features.

Business Impact & Customer Success

What business impact can I expect from using Hygraph and the MCP server?

Customers using Hygraph have reported significant business outcomes, including 3X faster time-to-market (Komax), 20% increase in website monetization (Autoweb), and improved customer engagement (Samsung achieved 15% higher engagement rate). The MCP server enables automation and AI-native workflows, further accelerating operational efficiency and scalability. See case studies.

Can you share specific customer success stories using Hygraph?

Yes. For example, Komax achieved 3X faster time-to-market and 70% faster page loading time; Autoweb saw a 20% increase in website monetization; Samsung improved engagement by 15%. These stories highlight Hygraph’s ability to deliver measurable results across industries. Explore more success stories.

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

#MCP server

The Hygraph MCP server connects Hygraph directly to AI assistants through the Model Context Protocol (MCP). It allows MCP-compatible tools, such as Claude, Cursor, Windsurf, or VS Code, to securely interact with your Hygraph project using natural language commands.

The Hygraph MCP server acts as a bridge between AI assistants and Hygraph’s Content API, allowing large language models (LLMs) to interact with your Hygraph project in a structured, secure, and standardized way.

#What you can do

The MCP server enables developers and platform teams to build intelligent, compliant AI integrations that feel native to Hygraph, without reinventing API logic for every project. The MCP server reuses the same model and permissions as your PAT. You can configure which models you want to be editable.

It exposes tools that handle discovery, querying, CRUD operations, and publishing. Once connected, AI assistants can read, create, update, and publish content through your existing Hygraph APIs, turning your CMS into an AI-native content platform. Currently, we do not allow delete or unpublish operations via MCP.

Once you have the MCP server up and running, you could perform the following tasks:

  • Fetch all blog posts published this week and generate a social media summary.
  • Create a new product entry with the specified details and publish it.
  • Update all draft posts tagged ‘urgent’ and change their status.
  • Check which content models exist in this project.
  • Show me the structure of the Product model.
  • List all posts with their authors.
  • Move content between environments.
  • Perform bulk updates or cleanups.
  • Generate and publish content automatically based on prompts or structured data.

#Get started

#Availability

  • The Hygraph MCP server is available for all projects and is currently in Early Access.

#Steps

To set up the MCP server, perform the following steps:

  1. Retrieve the Permanent Auth Token (PAT) from Hygraph Studio.
    • Currently, we do not support OAuth for authentication.
  2. Retrieve the MCP Server API endpoint.
  3. Configure your MCP client.

#Retrieve the Permanent Auth Token (PAT)

Hygraph MCP authenticates using a bearer token. You need to supply the Permanent Auth Token (PAT) as the bearer token. If you have not created a PAT, follow the steps here.

To retrieve the PAT, 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.

#Retrieve the MCP Server API 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-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp

#Set up the MCP client

Each MCP client handles HTTP servers and authentication differently.

#Claude Code

Claude Code has native support for HTTP MCP servers with auth headers.

Method 1 (Recommended) - Use environment variables

# set your token as an env var
export HYGRAPH_TOKEN="your_token_here"
# reference it in the command
claude mcp add --transport http \
--header "Authorization: Bearer ${HYGRAPH_TOKEN}" \
hygraph https://mcp-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp

Method 2 - Add the server with your bearer token

claude mcp add --transport http \
--header "Authorization: Bearer YOUR_HYGRAPH_TOKEN" \
hygraph https://mcp-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp

Verification

# list configured servers
claude mcp list
# start claude and test
claude
> /mcp
# you should see hygraph listed

To define the project scope, use these arguments:

  • --scope local - only this project (default)
  • --scope user - all your projects
  • --scope global - system-wide

#Cursor IDE

  1. In Cursor, navigate to Settings.

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

  3. As per your requirement, paste one of the following configuration:

    • Project-specific configuration - In .cursor/mcp.json file in your repository
    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "-y",
    "mcp-remote@latest",
    "https://mcp-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp",
    "--header",
    "Authorization: Bearer YOUR_TOKEN_HERE"
    ]
    }
    }
    }
    • Global configuration - In .cursor/mcp.json file in your repository
    {
    "mcpServers": {
    "hygraph": {
    "command": "npx",
    "args": [
    "-y",
    "mcp-remote@latest",
    "https://mcp-YOUR_PROJECT_HOSTED_REGION.hygraph.com/YOUR_PROJECT_IDENTIFIER/YOUR_ENVIRONMENT_NAME/mcp",
    "--header",
    "Authorization: Bearer ${HYGRAPH_TOKEN}"
    ],
    "env": {
    "HYGRAPH_TOKEN": "your_token_here"
    }
    }
    }
    }

#VS Code

VS Code has built-in MCP support. For more information on adding an MCP server, read the VS Code docs.

In the .vscode/mcp.json file, add the following configuration:

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

Alternatively, you can use mcp-remote:

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

#Windsurf IDE

  1. Navigate to Windsurf Settings.

  2. Scroll to Cascade → MCP Servers.

  3. Click Add Server.

  4. In the ~/.codeium/windsurf/mcp_config.json file, paste the following configuration:

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

#Claude Desktop

  1. Edit your config file at:

    • 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, and click Edit Config. This takes you directly to the file. Open it and follow the steps below.

  2. Add the following to your config file:

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

For more information on setting up an MCP server, see Claude documentation.

#Use MCP server tools

Once your MCP server is running, you can start interacting with models and entries in your Hygraph project.

For example, you can write the following prompts:

  • List all blog posts from Hygraph, and then create individual Markdown files for each post with front matter including slug, title, and publish date.
  • Find all posts with status DRAFT that have 'urgent' in the title, update their priority field to 'high', then publish them.
  • Generate TypeScript types for all content models in Hygraph.

#Troubleshooting

#Authorization failed / 401 error

Check if:

  • You can test the token in the Hygraph API playground.
  • The token has the required permissions for the operation.
  • The header format is correct — Authorization: Bearer YOUR_TOKEN.
  • There are no extra quotes around the token.

#Server not found in client error

For stdio clients (Cursor/Windsurf):

  • Verify npx is installed (which npx).
  • Test mcp-remote manually.
    npx -y mcp-remote@latest YOUR_ENDPOINT --header "Authorization: Bearer TOKEN"

For Claude Code:

  • Run claude mcp get hygraph to check the config.
  • Run claude mcp logs hygraph to 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 client.
  2. Check the MCP server list/status.
  3. Check server logs.
  4. Verify network access to Hygraph endpoint, and permissions associated with the Hygraph token.

#mcp-remote connection issues

The mcp-remote package is used to connect stdio-based MCP clients, such as Cursor or Windsurf to HTTP endpoints. For more information, see the official docs. If you face mcp-remote connection issues, you can:

  • Update to the latest version - npm install -g mcp-remote@latest.
  • Use the absolute path of npx in the config file. Run which npx to find the absolute path.
  • Check if node version is >=20.18.1.

#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.

  • Use separate tokens per environment. An example config for multi-environment configuration:

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

Access control: