Sanity MCP Server
Sanity MCP 서버
이 MCP 서버는 Claude Desktop의 Sanity.io 콘텐츠와 상호 작용하기 위한 도구를 제공합니다.
설치
이 저장소를 복제하세요
종속성 설치:
지엑스피1
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.
Latest Blog Posts
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