Grid Mcp Server

Grid Mcp Server

🚀 GRID MCP 服务器

GRID MCP 服务器可让你直接从 Claude for Desktop 使用 GRID API,基于 Model Context Protocol 构建。

🚀 快速开始

运行服务器的先决条件

⚠️ 重要提示

运行此服务器需要完成以下准备:

操作步骤

  1. 克隆仓库
    git clone https://github.com/GRID-is/claude-mcp.git
    
  2. 进入项目目录
    cd claude-mcp
    
  3. 使用npm设置项目
    npm install
    
  4. 配置Claude for Desktop使用此MCP服务器 打开Claude的应用程序配置文件(若不存在则创建):
    • MacOS系统
    ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
    • Windows系统
    %APPDATA%\Claude\claude_desktop_config.json
    
  5. 添加服务器配置mcpServers 键下添加服务器配置:
    {
    "mcpServers": {
    "grid": {
    "command": "node",
    "args": ["/ABSOLUTE/PATH/TO/claude-mcp/dist/index.js"],
    "env": {
    "GRID_API_KEY": "YOUR_API_KEY"
    }
    }
    }
    }
    
    请确保将 /ABSOLUTE/PATH/TO/claude-mcp 更改为仓库目录的实际路径,并将 YOUR_API_KEY 替换为您的 GRID API 密钥。
  6. 重启Claude for Desktop 退出并重新打开 Claude for Desktop,即可询问 Claude 关于电子表格的问题,例如:

    使用具有 id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的工作簿,给我 A1:C10 单元格的总和

💻 使用示例

基础用法

完成上述步骤后,重启Claude for Desktop,你就可以向Claude询问电子表格相关问题,如:

使用具有 id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的工作簿,给我 A1:C10 单元格的总和

🔧 开发

本地修改服务器代码步骤

  1. 安装依赖项
    npm install
    
  2. 构建服务器
    npm run build
    
  3. 带自动重建进行开发
    npm run watch
    

调试

由于 MCP 服务器通过 stdio 通信,调试可能具有挑战性。

💡 使用建议

建议使用 MCP Inspector,作为包脚本可用:

npm run inspector

MCP Inspector 会提供一个访问调试工具的 URL,可在浏览器中打开进行调试。

  • 0 关注
  • 0 收藏,8 浏览
  • system 提出于 2025-09-22 04:24

相似服务问题