macrostrat-mcp

macrostrat-mcp

用于通过Macrostrat API访问地质数据的MCP Server。

简介

Macrostrat MCP 是一个为 Claude 桌面版提供的服务器,让您能够通过自然语言查询访问 Macrostrat API 的地质数据。

smithery 徽章 Macrostrat 服务器 MCP 服务器

功能

  • 查询全面的地质数据(地质单元、地层柱、矿物、时间尺度等)
  • 分析地质数据
  • 创建地质数据可视化
  • 使用自然语言进行交互

安装方法

1. 通过 Smithery 安装(推荐)

npx -y @smithery/cli install @blake365/macrostrat-mcp --client claude

2. 手动安装

  1. 打开 Claude 桌面版配置文件:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 添加服务器配置:

{
    "mcpServers": {
        "macrostrat": {
            "command": "node",
            "args": [
                "/Full/Route/to/Folder/macrostrat/build/index.js"
            ]
        }
    }
}
  1. 关闭并重启 Claude 桌面版

使用方法

安装后,您可以在 Claude 中用自然语言提问,例如:

  • "纳什维尔(田纳西州)的地质历史是什么?"
  • "宾夕法尼亚州的主要岩石类型有哪些?"
  • "显示犹他州的地质柱状图"

故障排除

如果遇到错误,请尝试:

  • 提供 node 命令的完整路径(如 macOS: /usr/local/bin/node
  • 确认配置文件格式正确
  • 重新启动 Claude 桌面版

高级用法

如需修改服务器:

  1. 编辑 src/index.ts 文件
  2. 运行 npm install 安装依赖
  3. 运行 npm run build 构建服务器
  4. 重启 Claude 桌面版

成功安装后,您会在 Claude 文本框右下角看到一个小锤子图标,表示 MCP 工具已可用。