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

        • -
          security
          F
          license
          -
          quality
          An MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.
          Last updated -
          Python
        • A
          security
          F
          license
          A
          quality
          A server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.
          Last updated -
          1
          1
          • Apple
        • A
          security
          F
          license
          A
          quality
          A server built with mcp-framework that allows users to extend Claude's capabilities by adding custom tools that can be used through the Claude Desktop client.
          Last updated -
          3
          677
          TypeScript
        • A
          security
          F
          license
          A
          quality
          An MCP server that integrates with Claude Desktop for managing personal journal entries, providing both a web viewer for browsing journals and tools for adding, searching, and analyzing journal content.
          Last updated -
          6
          7
          1
          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