Skip to main content
Glama

Sanity MCP Server

by jlmelis

Sanity MCP サーバー

この MCP サーバーは、Claude Desktop から Sanity.io コンテンツを操作するためのツールを提供します。

インストール

  1. このリポジトリをクローンする
  2. 依存関係をインストールします:
npm install
  1. Sanity の資格情報を使用して.envファイルを作成します。
SANITY_PROJECT_ID=your_project_id SANITY_DATASET=your_dataset SANITY_TOKEN=your_token

Claude Desktopでの使用

  1. Claudeデスクトップで、[設定] > [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)

スキーマを取得

既存のドキュメントに基づいてスキーマ テンプレートを取得します

**注:**最良の結果を得るには、このツールを使用する前に、各タイプのドキュメントを少なくとも 1 つ手動で作成してください。

パラメータ:

  • 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

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.

Claude Desktop が Sanity.io コンテンツと対話できるようにし、ドキュメントを作成、編集、一覧表示し、スキーマ テンプレートを取得するためのツールを提供する MCP サーバー。

  1. インストール
    1. Claude Desktopでの使用
      1. 利用可能なツール
        1. ドキュメントを作成
        2. ドキュメントを編集
        3. ドキュメントの一覧
        4. スキーマを取得
      2. 使用例

        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