Sanity MCP Server

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.

Integrations

  • Provides tools for interacting with Sanity.io content, including creating new documents, editing existing documents, listing documents of specific types, and retrieving schema templates based on document types.

Sanity MCP 서버

이 MCP 서버는 Claude Desktop의 Sanity.io 콘텐츠와 상호 작용하기 위한 도구를 제공합니다.

설치

  1. 이 저장소를 복제하세요
  2. 종속성 설치:

지엑스피1

  1. Sanity 자격 증명으로 .env 파일을 만듭니다.
SANITY_PROJECT_ID=your_project_id SANITY_DATASET=your_dataset SANITY_TOKEN=your_token

Claude Desktop과 함께 사용

  1. Claude Desktop에서 설정 > MCP 서버로 이동합니다.
  2. 다음 설정으로 새 서버를 추가합니다.
{ "command": "node", "args": ["src/sanity-mcp-server.ts"], "env": { "SANITY_PROJECT_ID": "your_project_id", "SANITY_DATASET": "your_dataset", "SANITY_TOKEN": "your_token" } }

사용 가능한 도구

문서 만들기

Sanity에서 새 문서를 만듭니다.

매개변수:

  • type : 문서 유형
  • content : 문서 내용

예:

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

문서 편집

기존 문서를 편집합니다

매개변수:

  • id : 문서 ID
  • content : 업데이트된 콘텐츠

문서 목록

특정 유형의 문서를 나열합니다

매개변수:

  • type : 문서 유형
  • limit : 반환할 문서의 최대 개수(기본값: 10)

스키마 가져오기

기존 문서를 기반으로 스키마 템플릿을 가져옵니다.

참고: 최상의 결과를 얻으려면 이 도구를 사용하기 전에 각 유형의 문서를 하나 이상 수동으로 만드세요.

매개변수:

  • type : 문서 유형

사용 예

  1. 새로운 블로그 게시물을 만드세요:
{ "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. 기존 게시물 편집:
{ "tool": "edit-document", "arguments": { "id": "post-id-123", "content": { "title": "Updated Title" } } }
  1. 최근 게시물 목록:
{ "tool": "list-documents", "arguments": { "type": "post", "limit": 5 } }
  1. 게시물에 대한 스키마 가져오기:
{ "tool": "get-schema", "arguments": { "type": "post" } }
-
security - not tested
F
license - not found
-
quality - not tested

Claude Desktop이 Sanity.io 콘텐츠와 상호 작용할 수 있도록 하는 MCP 서버로, 문서를 만들고, 편집하고, 나열하고, 스키마 템플릿을 가져오는 도구를 제공합니다.

  1. Installation
    1. Usage with Claude Desktop
      1. Available Tools
        1. Create Document
        2. Edit Document
        3. List Documents
        4. Get Schema
      2. Example Usage
        ID: r586ovnwc0