Hygraph
Docs

#MCP tools reference

The Hygraph MCP server provides tools for content, schema, AI guidelines, agents, and project discovery.

On the project endpoint (https://mcp-{REGION}.hygraph.com/{PROJECT_ID}/{ENVIRONMENT}/mcp), the project and environment are a part of the MCP endpoint URL.

On the global endpoint (https://mcp.hygraph.com/mcp), the assistant calls list_projects and list_environments first, then passes project and environment on every subsequent tool call.

See Connection modes for how to choose between the two.

#Content tools

UI nameToolWhat it does
List Content Typeslist_entity_typesLists content type names in the environment. Those names are the valid typename values for the other content tools.
Get Content Type Schemaget_entity_schemaReturns fields, types, required flags, and value shapes for one type.
List Entrieslist_entitiesLists entries of one type, with limit, stage, and field selection.
Get Entries by IDget_entities_by_idFetches specific entries by ID. Mixed types are allowed in one call.
Sample Entries Across Typesdiscover_entitiesSamples a few entries across types. Recommended for exploration, not for bulk reads.
Search Contentsearch_contentRuns a full-text search across all types. Case insensitive, no operators.
Execute GraphQLexecute_graphqlRuns a Content API query or mutation. delete* and unpublish* operations are rejected.
Create Entrycreate_entryCreates an entry in DRAFT.
Update Entryupdate_entryUpdates an existing entry in DRAFT.
Publish Entrypublish_entryPublishes an entry from DRAFT to PUBLISHED.

#Schema tools

UI nameToolWhat it does
Get Project Schema Overviewget_project_infoOverview of models, components, enumerations, locales, stages, and available migration operations.
Get Migration Operation Schemaget_management_operation_schemaInput schema and example for one migration operation.
Apply Schema Migrationsubmit_batch_migrationApplies schema changes in one transaction. Supports dry_run.

#AI guidelines tools

UI nameToolWhat it does
Get AI Guidelinesget_ai_guidelinesLoads the project's brand, glossary, audience, and legal guidelines so the assistant can follow them when writing or translating. Does not create or change guidelines.

See AI Guidelines for more information.

#Agents tools

UI nameToolWhat it does
List Agentslist_agentsLists agents in the environment and which ones can be triggered manually.
Trigger Agent Runtrigger_agentsStarts a manual agent (Use in Agent runs) on one or more entries. Does not wait for completion.
Check Agent Run Progresscheck_progressReports the latest run status per entry, or recent runs for that agent.

list_agents appears when agent discovery works. trigger_agents and check_progress appear only if the environment has at least one active manual agent. Workflow-bound agents cannot be triggered from MCP. See MCP server: agent operations for the full flow.

#Discovery tools (global endpoint only)

UI nameToolWhat it does
List Projectslist_projectsLists the projects the user can access.
List Environmentslist_environmentsLists environment names for that project.

These two tools only exist on the global endpoint. The project endpoint has no discovery tools, because its project and environment are already available in the MCP endpoint URL.

#What's next

  • MCP server: What the MCP server does and the permissions each tool needs.
  • MCP server setup: Connect a client and choose a connection mode.
  • AI Agents: How manual and workflow-bound agents differ in Studio.