# HasData Bing MCP server

> Lets an AI client perform Bing searches with geo-targeting, language selection, and access to organic results, ads, and Copilot answers as structured JSON.

- Repository: https://github.com/HasData/bing-mcp
- Page: https://hostedmcp.org/servers/hasdata/bing-mcp
- Transport: stdio, remote
- Stars: 4
- License: MIT
- Latest version: 1.0.3

## Install

### Claude Code

```sh
claude mcp add --env 'HASDATA_API_KEY=<YOUR_HASDATA_API_KEY>' bing-mcp -- npx -y @hasdata/bing-mcp
```

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

```json
{
  "mcpServers": {
    "bing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/bing-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "<YOUR_HASDATA_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "bing-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/bing-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "<YOUR_HASDATA_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"bing-mcp","type":"stdio","command":"npx","args":["-y","@hasdata/bing-mcp"],"env":{"HASDATA_API_KEY":"<YOUR_HASDATA_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "bing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/bing-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "<YOUR_HASDATA_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add bing-mcp --env 'HASDATA_API_KEY=<YOUR_HASDATA_API_KEY>' --env 'HASDATA_API_KEY=<YOUR_HASDATA_API_KEY>' -- npx -y @hasdata/bing-mcp
```

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

```toml
[mcp_servers.bing-mcp]
command = "npx"
args = ["-y", "@hasdata/bing-mcp"]

[mcp_servers.bing-mcp.env]
HASDATA_API_KEY = "<YOUR_HASDATA_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'HASDATA_API_KEY=<YOUR_HASDATA_API_KEY>' -e 'HASDATA_API_KEY=<YOUR_HASDATA_API_KEY>' bing-mcp npx -- -y @hasdata/bing-mcp
```

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

```json
{
  "mcpServers": {
    "bing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/bing-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "<YOUR_HASDATA_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HASDATA_API_KEY` | yes | yes | HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card. |
| `HASDATA_API_KEY` | yes | yes | HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card. |

## Tools (4)

- `location`
- `mkt`
- `filters`
- `first`

## FAQ

### Can I target specific countries or languages?

Yes, you can specify the market, country, and preferred language for the search results.

### Does it include Bing Copilot answers?

Yes, the server returns the Copilot answer and the pages it cites when available on the results page.
