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 内容进行交互的工具。
安装
- 克隆此存储库
- 安装依赖项:
Copy
- 使用您的 Sanity 凭证创建一个
.env
文件:
Copy
与 Claude Desktop 一起使用
- 在 Claude Desktop 中,前往“设置”>“MCP 服务器”
- 使用以下设置添加新服务器:
Copy
可用工具
创建文档
在 Sanity 中创建新文档
参数:
type
:文档类型content
:文档内容
例子:
Copy
编辑文档
编辑现有文档
参数:
id
:文档 IDcontent
:更新内容
列出文件
列出特定类型的文档
参数:
type
:文档类型limit
:返回的最大文档数(默认值:10)
获取架构
根据现有文档获取架构模板
**注意:**为获得最佳效果,请在使用此工具之前手动创建每种类型的至少一个文档。
参数:
type
:文档类型
示例用法
- 创建一篇新的博客文章:
Copy
- 编辑现有帖子:
Copy
- 列出最近的帖子:
Copy
- 获取帖子的架构:
Copy
This server cannot be installed
MCP 服务器使 Claude Desktop 能够与 Sanity.io 内容进行交互,提供创建、编辑、列出文档和获取架构模板的工具。