# Groundlink MCP server

> Provides cited web search results from Wikipedia and DuckDuckGo to AI clients for evidence-based answering.

- Repository: https://github.com/ohhavefun/groundlink
- Page: https://hostedmcp.org/servers/ohhavefun/groundlink
- Transport: stdio
- Stars: 0
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add --env 'GROUNDLINK_API_KEY=<YOUR_GROUNDLINK_API_KEY>' groundlink -- npx -y groundlink-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "groundlink": {
      "command": "npx",
      "args": [
        "-y",
        "groundlink-mcp"
      ],
      "env": {
        "GROUNDLINK_API_KEY": "<YOUR_GROUNDLINK_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "groundlink": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "groundlink-mcp"
      ],
      "env": {
        "GROUNDLINK_API_KEY": "<YOUR_GROUNDLINK_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"groundlink","type":"stdio","command":"npx","args":["-y","groundlink-mcp"],"env":{"GROUNDLINK_API_KEY":"<YOUR_GROUNDLINK_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "groundlink": {
      "command": "npx",
      "args": [
        "-y",
        "groundlink-mcp"
      ],
      "env": {
        "GROUNDLINK_API_KEY": "<YOUR_GROUNDLINK_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add groundlink --env 'GROUNDLINK_API_KEY=<YOUR_GROUNDLINK_API_KEY>' -- npx -y groundlink-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.groundlink]
command = "npx"
args = ["-y", "groundlink-mcp"]

[mcp_servers.groundlink.env]
GROUNDLINK_API_KEY = "<YOUR_GROUNDLINK_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'GROUNDLINK_API_KEY=<YOUR_GROUNDLINK_API_KEY>' groundlink npx -- -y groundlink-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "groundlink": {
      "command": "npx",
      "args": [
        "-y",
        "groundlink-mcp"
      ],
      "env": {
        "GROUNDLINK_API_KEY": "<YOUR_GROUNDLINK_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GROUNDLINK_API_KEY` | yes | yes | Groundlink API key used for every cited web-search request. |

## FAQ

### How much does Groundlink cost?

Each API key includes 100 free test queries, after which prepaid usage is $0.001 per query.

### What sources does Groundlink search?

Groundlink currently combines results from Wikipedia and DuckDuckGo.

### What happens if I run out of credits?

If there are no remaining free or prepaid credits, the server returns a 402 tool error.
