Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SPACE_IDYesYour Contentful space ID (required)
HTTP_HOSTNoHost for HTTP server (default: localhost)localhost
HTTP_PORTNoPort for HTTP server (default: 3000)3000
ENVIRONMENT_IDNoEnvironment ID (defaults to "master")master
ENABLE_HTTP_SERVERNoSet to "true" to enable HTTP/SSE modefalse
CONTENTFUL_DELIVERY_ACCESS_TOKENYesYour Content Delivery API token (required)

Tools

Functions exposed to the LLM to take actions

NameDescription
graphql_query

IMPORTANT: Before using this tool, you MUST first use graphql_list_content_types and graphql_get_content_type_schema to understand the available content types and their structure. Execute a GraphQL query against the Contentful GraphQL API. This tool allows you to use Contentful's powerful GraphQL interface to retrieve content in a more flexible and efficient way than REST API calls. The space ID and CDA token are automatically retrieved from environment variables.

graphql_list_content_types

IMPORTANT: Use this tool FIRST before attempting to write any GraphQL queries. This tool lists all available content types in the Contentful space's GraphQL schema. You should always use this tool to understand what content types are available before formulating GraphQL queries. The space ID and CDA token are automatically retrieved from environment variables.

graphql_get_content_type_schema

IMPORTANT: Use this tool AFTER using graphql_list_content_types to get a detailed schema for a specific content type. This tool provides all fields, their types, and relationships for a content type. You should ALWAYS use this tool to understand the structure of a content type before creating a query for it. The space ID and CDA token are automatically retrieved from environment variables.

graphql_get_example

IMPORTANT: Use this tool AFTER using graphql_get_content_type_schema to see example GraphQL queries for a specific content type. Learning from these examples will help you construct valid queries. The space ID and CDA token are automatically retrieved from environment variables.

smart_search

Perform intelligent search across multiple content types using cached metadata. This tool automatically searches all text fields in your content types for the given query term. Much faster and easier than manually chaining multiple GraphQL calls.

build_search_query

Generate a GraphQL search query for a specific content type based on cached schema information. Returns the query string and variables needed to search text fields in the content type.

Prompts

Interactive templates invoked by user choice

NameDescription
explore-graphql-schemaExplore the GraphQL schema for this Contentful space and get guidance on querying content
build-graphql-queryBuild a custom GraphQL query for a specific content need

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivo-toby/contentful-mcp-graphql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server