# 安装 Hathitrust

- 类型: MCP 工具
- 说明: 连接 HathiTrust 书目 API，帮助检索馆藏书目信息与文献元数据。
- 仓库: https://github.com/pipeworx-io/mcp-hathitrust
- ⚠ 安全: 该 MCP 工具材料较少，但从已知信息看，属于官方 Registry 提供、可审计开源、无密钥要求的 HathiTrust Bibliographic API 接入工具。主要注意点是其会本机执行并连接远程网关，整体更接近低到中等留意风险，而非高风险。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "Hathitrust" MCP 服务：
执行：claude mcp add --transport http io-github-pipeworx-io-hathitrust https://gateway.pipeworx.io/hathitrust/mcp
```

### Codex
```
请帮我安装 askskill 上的 "Hathitrust" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.io-github-pipeworx-io-hathitrust]
url = "https://gateway.pipeworx.io/hathitrust/mcp"
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "Hathitrust" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"io-github-pipeworx-io-hathitrust": { "url": "https://gateway.pipeworx.io/hathitrust/mcp" }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --transport http io-github-pipeworx-io-hathitrust https://gateway.pipeworx.io/hathitrust/mcp
```

### Codex
```bash
codex mcp add io-github-pipeworx-io-hathitrust --url https://gateway.pipeworx.io/hathitrust/mcp
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.io-github-pipeworx-io-hathitrust]
url = "https://gateway.pipeworx.io/hathitrust/mcp"
```

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "io-github-pipeworx-io-hathitrust": {
      "url": "https://gateway.pipeworx.io/hathitrust/mcp"
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=io-github-pipeworx-io-hathitrust&config=eyJ1cmwiOiJodHRwczovL2dhdGV3YXkucGlwZXdvcnguaW8vaGF0aGl0cnVzdC9tY3AifQ
