Sanity MCP Server
Sanity MCP 服务器
该 MCP 服务器提供了与 Claude Desktop 的 Sanity.io 内容进行交互的工具。
安装
克隆此存储库
安装依赖项:
npm install使用您的 Sanity 凭证创建一个
.env文件:
SANITY_PROJECT_ID=your_project_id
SANITY_DATASET=your_dataset
SANITY_TOKEN=your_tokenRelated MCP server: MCP Tool
与 Claude Desktop 一起使用
在 Claude Desktop 中,前往“设置”>“MCP 服务器”
使用以下设置添加新服务器:
{
"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:文档 IDcontent:更新内容
列出文件
列出特定类型的文档
参数:
type:文档类型limit:返回的最大文档数(默认值:10)
获取架构
根据现有文档获取架构模板
**注意:**为获得最佳效果,请在使用此工具之前手动创建每种类型的至少一个文档。
参数:
type:文档类型
示例用法
创建一篇新的博客文章:
{
"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!"
}
]
}
]
}
}
}编辑现有帖子:
{
"tool": "edit-document",
"arguments": {
"id": "post-id-123",
"content": {
"title": "Updated Title"
}
}
}列出最近的帖子:
{
"tool": "list-documents",
"arguments": {
"type": "post",
"limit": 5
}
}获取帖子的架构:
{
"tool": "get-schema",
"arguments": {
"type": "post"
}
}This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn 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.
- FlicenseDqualityDmaintenanceA server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.11
- FlicenseCqualityDmaintenanceA 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.384
- AlicenseAqualityDmaintenanceAn 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.6312MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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