Skip to main content
Glama

Sanity MCP Server

by jlmelis

Servidor MCP de Sanity

Este servidor MCP proporciona herramientas para interactuar con el contenido de Sanity.io desde Claude Desktop.

Instalación

  1. Clonar este repositorio
  2. Instalar dependencias:
npm install
  1. Crea un archivo .env con tus credenciales de Sanity:
SANITY_PROJECT_ID=your_project_id SANITY_DATASET=your_dataset SANITY_TOKEN=your_token

Uso con Claude Desktop

  1. En Claude Desktop, vaya a Configuración > Servidores MCP
  2. Agregue un nuevo servidor con estas configuraciones:
{ "command": "node", "args": ["src/sanity-mcp-server.ts"], "env": { "SANITY_PROJECT_ID": "your_project_id", "SANITY_DATASET": "your_dataset", "SANITY_TOKEN": "your_token" } }

Herramientas disponibles

Crear documento

Crea un nuevo documento en Sanity

Parámetros:

  • type : Tipo de documento
  • content : Contenido del documento

Ejemplo:

{ "type": "post", "content": { "title": "My Post", "body": [ { "_type": "block", "children": [ { "_type": "span", "text": "Hello world!" } ] } ] } }

Editar documento

Edita un documento existente

Parámetros:

  • id : ID del documento
  • content : Contenido actualizado

Lista de documentos

Enumera documentos de un tipo específico

Parámetros:

  • type : Tipo de documento
  • limit : Número máximo de documentos a devolver (predeterminado: 10)

Obtener esquema

Obtiene una plantilla de esquema basada en un documento existente

Nota: para obtener mejores resultados, cree manualmente al menos un documento de cada tipo antes de usar esta herramienta.

Parámetros:

  • type : Tipo de documento

Ejemplo de uso

  1. Crear una nueva entrada de blog:
{ "tool": "create-document", "arguments": { "type": "post", "content": { "title": "My First Post", "slug": "my-first-post", "body": [ { "_type": "block", "children": [ { "_type": "span", "text": "This is my first post!" } ] } ] } } }
  1. Editar una publicación existente:
{ "tool": "edit-document", "arguments": { "id": "post-id-123", "content": { "title": "Updated Title" } } }
  1. Lista de publicaciones recientes:
{ "tool": "list-documents", "arguments": { "type": "post", "limit": 5 } }
  1. Obtener el esquema para las publicaciones:
{ "tool": "get-schema", "arguments": { "type": "post" } }
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Un servidor MCP que permite a Claude Desktop interactuar con el contenido de Sanity.io, proporcionando herramientas para crear, editar, enumerar documentos y obtener plantillas de esquema.

  1. Instalación
    1. Uso con Claude Desktop
      1. Herramientas disponibles
        1. Crear documento
        2. Editar documento
        3. Lista de documentos
        4. Obtener esquema
      2. Ejemplo de uso

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          MCP server that builds itself by creating new tools as needed based on user requests (Requires restart of Claude Desktop to use newly created tools).
          Last updated -
          4
          13
          Python
          The Unlicense
        • -
          security
          A
          license
          -
          quality
          A local MCP server that enables AI applications like Claude Desktop to securely access and work with Obsidian vaults, providing capabilities for reading notes, executing templates, and performing semantic searches.
          Last updated -
          60
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
          Last updated -
          179
          Python
          MIT License
          • Apple
          • Linux
        • -
          security
          -
          license
          -
          quality
          An MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.
          Last updated -
          TypeScript

        View all related MCP servers

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

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