Artsy Analytics MCP Server POC是一个基于Model Context Protocol的服务器,为Claude Desktop提供Artsy合作伙伴分析工具。该项目使用 modelcontextprotocol/typescript-sdk 构建,能够帮助用户深入了解合作伙伴的各项数据指标。
你可以按照以下步骤完成项目的安装与配置:
curl -fsSL https://bun.sh/install | bash
git clone https://github.com/damassi/mcp-tests.git
cd mcp-tests
bun install
bun sync-schema
code ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"artsy-analytics": {
"command": "/Users//.bun/bin/bun" ,
"args": ["/path/to/mcp/src/mcp-server.ts"],
"env": {
"CLAUDE_DESKTOP": "true",
"METAPHYSICS_ENDPOINT": "your_endpoint",
"USER_ID": "your_user_id",
"X_ACCESS_TOKEN": "your_token"
}
}
}
}
curl -fsSL https://bun.sh/install | bash
git clone https://github.com/damassi/mcp-tests.git
cd mcp-tests
bun install
bun sync-schema
code ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"artsy-analytics": {
"command": "/Users//.bun/bin/bun" ,
"args": ["/path/to/mcp/src/mcp-server.ts"],
"env": {
"CLAUDE_DESKTOP": "true",
"METAPHYSICS_ENDPOINT": "your_endpoint",
"USER_ID": "your_user_id",
"X_ACCESS_TOKEN": "your_token"
}
}
}
}
你可以向Claude提出以下问题来使用分析工具:
在开发过程中,你可以运行以下命令:
bun dev
# 从模式生成GraphQL类型
bun gql
然后启动 modelcontextprotocol 检查器:
bunx @modelcontextprotocol/inspector
请确保设置如下所示,并(至关重要!)根据 .env.example 添加正确的 环境变量。