Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_USER_ROLENoDetermines tool access level (developer or editor)
SANITY_DATASETYesThe dataset to use
SANITY_API_HOSTNoAPI host (defaults to https://api.sanity.io)https://api.sanity.io
SANITY_API_TOKENYesYour Sanity API token
SANITY_PROJECT_IDYesYour Sanity project ID

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
get_initial_contextA

IMPORTANT: This tool must be called before using any other tools. It will get initial context and usage instructions for this MCP server.

get_sanity_configA

Get current Sanity configuration (projectId, dataset, API settings)

get_groq_specificationA

Get the GROQ language specification summary

create_documentB

Create a new document in Sanity with AI-generated content based on instructions

update_documentB

Update an existing document or version with AI-generated content based on instructions

patch_documentA

Apply direct patch operations to modify specific parts of a document without using AI generation

query_documentsC

Query documents from Sanity using GROQ query language

document_actionB

Perform document actions like publishing, unpublishing, or deleting documents

create_versionA

Create a version of an existing document for a specific release, with optional AI-generated modifications

discard_versionC

Discard a draft or delete a specific version document from a release

mark_for_unpublishA

Mark a document to be unpublished when a specific release is published

get_schemaA

Get the full schema of the current Sanity environment

list_schema_idsB

Get a list of all available schema IDs

list_releasesB

List content releases in Sanity, optionally filtered by state (active, scheduled, etc)

create_releaseB

Create a new content release in Sanity with an automatically generated ID

edit_releaseC

Update metadata for an existing content release

schedule_releaseA

Schedule a content release to be published at a specific time

release_actionC

Perform basic actions on existing content releases (publish, archive, unschedule, delete)

list_embeddings_indicesB

List all available embeddings indices for a dataset

semantic_searchB

Perform a semantic search on an embeddings index

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

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/sanity-io/sanity-mcp-server'

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