# Contentful — how to use (mcp.ai)

Contentful is a headless CMS allowing developers to create, manage, and distribute content across multiple channels and devices with an API-first approach

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_contentful?ms=1781542020000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `contentful_get_space`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/contentful`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/contentful/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/contentful/get/space` — Retrieves details of a specific space by its id. this action is used to get information about a single space in contentful.
  - body: { space_id: string }
- `POST https://api.mcp.ai/api/contentful/list/spaces` — Lists all spaces that the authenticated user has access to in contentful. this is a fundamental operation needed before performing any other content management actions since most operations require a 
  - body: { skip?: integer, limit?: integer, order?: string }
- `POST https://api.mcp.ai/api/contentful/update/space` — Updates the name of a specific space. notes: - the version number is required to ensure you're updating the latest version of the space. - you can get the current version from the sys.version field wh
  - body: { name: string, version: integer, space_id: string }

## More
- Page: https://mcp.ai/contentful
- Agent spec (llms.txt): https://mcp.ai/contentful/llms.txt
- Postman collection: https://mcp.ai/contentful/postman.json
