# Contentful Graphql

> The Contentful GraphQL Content API allows developers to query and deliver content using GraphQL, providing a flexible and efficient way to access content…

The Contentful GraphQL Content API allows developers to query and deliver content using GraphQL, providing a flexible and efficient way to access content stored in Contentful.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Contentful Graphql** authenticates with an API key. Generate the credential in your Contentful Graphql account, then paste it into FlyMyAI the first time an agent uses a Contentful Graphql action.

[Get your Contentful Graphql credential →](https://app.contentful.com/account/profile/cma_tokens)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Contentful Space ID` | The unique identifier for your Contentful space. _(required)_ |
| `Contentful API Access Token` | The API key used to authenticate requests to the Contentful GraphQL Content API. _(required)_ |
| `Environment ID` | The identifier for the environment within the space. |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `CONTENTFUL_GRAPHQL_GET_CMA_TOKEN` | Tool to retrieve a Contentful Management API (CMA) access token. Use when making CMA calls to ensure valid authorization. | - |
| `CONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_PERSISTED_QUERY` | Tool to execute a persisted GraphQL query via its SHA256 hash. Use after registering a query hash to run cached queries by hash. On first call include full query text; thereafter invoke with only hash and variables. | `space_id`, `environment_id`, `sha256_hash` |
| `CONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_QUERY` | Tool to execute a GraphQL query against a specified space and environment. Use when fetching Contentful content via GraphQL after obtaining or providing a valid token. | `space_id`, `environment_id`, `query` |

## Links

- [Contentful Graphql website](https://www.contentful.com/developers/docs/references/graphql/)
- [Get API key / credential](https://app.contentful.com/account/profile/cma_tokens)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
