# Contextual MCP Server

> Contextual MCP Server is an open-source MCP server. RAG-enabled MCP server using Contextual AI. Supports single-agent and multi-agent modes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/nitishgourishetty/contextual-mcp-server
- **MCP Registry name:** io.github.NitishGourishetty/contextual-mcp-server
- **Listing updated:** 2026-11-13

## About

RAG-enabled MCP server using Contextual AI. Supports single-agent and multi-agent modes.

## Install

### Claude Code (Terminal)

```sh
claude mcp add contextual-mcp-server --env API_KEY='<API_KEY>' -- uvx contextual-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "contextual-mcp-server": {
      "command": "uvx",
      "args": [
        "contextual-mcp-server"
      ],
      "env": {
        "API_KEY": "<API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "contextual-mcp-server": {
      "command": "uvx",
      "args": [
        "contextual-mcp-server"
      ],
      "env": {
        "API_KEY": "<API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "contextual-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "contextual-mcp-server"
      ],
      "env": {
        "API_KEY": "<API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "contextual-mcp-server": {
      "command": "uvx",
      "args": [
        "contextual-mcp-server"
      ],
      "env": {
        "API_KEY": "<API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "contextual-mcp-server": {
      "command": "uvx",
      "args": [
        "contextual-mcp-server"
      ],
      "env": {
        "API_KEY": "<API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Contextual MCP Server free?

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

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

Run this command in your terminal: claude mcp add contextual-mcp-server --env API_KEY='<API_KEY>' -- uvx contextual-mcp-server

---
Source: https://ai-powered.com/mcp/contextual-mcp-server
