# ContextStream MCP Server

> ContextStream MCP Server is an open-source MCP server. ContextStream MCP server for code context, memory, search, and AI tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://contextstream.io/docs/mcp
- **Repository:** https://github.com/contextstream/mcp-server
- **MCP Registry name:** io.github.contextstreamio/mcp-server
- **Listing updated:** 2026-11-13

## About

ContextStream MCP server for code context, memory, search, and AI tools.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-server --env CONTEXTSTREAM_API_KEY='<CONTEXTSTREAM_API_KEY>' -- npx -y @contextstream/mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ],
      "env": {
        "CONTEXTSTREAM_API_KEY": "<CONTEXTSTREAM_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ],
      "env": {
        "CONTEXTSTREAM_API_KEY": "<CONTEXTSTREAM_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ],
      "env": {
        "CONTEXTSTREAM_API_KEY": "<CONTEXTSTREAM_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ],
      "env": {
        "CONTEXTSTREAM_API_KEY": "<CONTEXTSTREAM_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ],
      "env": {
        "CONTEXTSTREAM_API_KEY": "<CONTEXTSTREAM_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is ContextStream MCP Server free?

Yes. ContextStream MCP Server is open source, so you can use and self-host it for free.

### How do I add ContextStream MCP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env CONTEXTSTREAM_API_KEY='<CONTEXTSTREAM_API_KEY>' -- npx -y @contextstream/mcp-server

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/contextstream-mcp-server-2
