cortex-mcp
The Cortex MCP Server
Documentation
Cortex MCP Overview
>[!NOTE]
>Research Preview
>
>Not seeing the results you expect? This is an early version of the Cortex MCP. Please send feedback and bug reports to Cortex Customer Engineering.
Cortex MCP is a Model Context Protocol server that provides access to the Cortex API. It uses relevant context from your workspace, ensuring awareness of your system's structure when answering your questions.
You can query information in natural language, powering faster decisions and efficient processes. For example:
- Who is the right person to handle an incident with backend-server?
- Show me the services that belong to the platform engineering team
- We're having an incident with backend-server, give me a summary of information to help handle the incident
Requirements
Before getting started, you'll need:
- MCP Client: Claude Desktop or other MCP-compatible client
- Cortex Personal Access Token: Create a token in your Cortex workspace settings.
Installation
>[!NOTE]
>Docker Required
>
>Make sure Docker is installed and running on your system before proceeding with the installation.
Then configure your MCP client. We've tested this with Claude Desktop, and Cursor, but it should work with any MCP-compatible client.
If you are a self-managed Cortex customer, you must also set `CORTEX_API_BASE_URL=https://` alongside the `CORTEX_API_TOKEN` variable. See the docs for an example configuration.
Claude Desktop
{
"mcpServers": {
"cortex": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
"ghcr.io/cortexapps/cortex-mcp:latest"
]
}
}
}Claude Code
Use the following command to add Cortex MCP to Claude Code:
claude mcp add-json "cortex" '{
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
"ghcr.io/cortexapps/cortex-mcp:latest"
]
}'If successful, you should see: "Added stdio MCP server cortex to local config"
Cursor
{
"mcpServers": {
"cortex": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
"ghcr.io/cortexapps/cortex-mcp:latest"
]
}
}
}VSCode
VS Code MCP Servers Documentation
Sample `.vscode/mcp.json`
{
"inputs": [
{
"type": "promptString",
"id": "cortex-key",
"description": "Cortex API Key",
"password": true
}
],
"servers": {
"Cortex": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"ghcr.io/cortexapps/cortex-mcp:latest"
],
"env": {
"CORTEX_API_TOKEN": "${input:cortex-key}"
}
}
}
}Warp
Under Settings > AI > Manage MCP Servers, you can configure your JSON config:
{
"cortex": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
"ghcr.io/cortexapps/cortex-mcp:latest"
],
"env": {},
"start_on_launch": true
}
}Support
- GitHub Issues: https://github.com/cortexapps/cortex-mcp/issues
- Email: help@cortex.io
License
MIT License - see LICENSE file for details.
Frequently asked questions
What is cortex-mcp?
cortex-mcp is The Cortex MCP Server
How do I install cortex-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is cortex-mcp open source?
Yes — it is hosted on GitHub at https://github.com/cortexapps/cortex-mcp and has 4 stars.
Related MCP tools
Damn Vulnerable MCP Server Python-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases Python-based implementation. Trusted by 900+ developers.
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning...
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
An MCP server that provides control over Android devices via adb Python-based implementation. Trusted by 500+ developers.
A Model Context Protocol (MCP) server for PostgreSQL databases with enhanced capabilities for AI agents. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP