drio
Open app

StarRocks Official MCP Server

Source

StarRocks MCP (Model Context Protocol) Server

Catalog onlyCatalog onlySTDIO

Overview

StarRocks MCP Server is a bridge between AI assistants and StarRocks databases, enabling direct SQL execution and database exploration without complex setup.

To use the MCP Server, configure it with the necessary environment variables and run the server using the provided command. You can execute SQL queries directly through the server.

  • Direct SQL execution from AI assistants. - Easy configuration with environment variables. - Access to database schemas and tables. - System internal information exposure similar to Linux /proc.
  1. Integrating AI applications with StarRocks databases.
  2. Executing SQL queries without manual database management.
  3. Exploring database structures and statistics programmatically.

Add to your AI client

Use these steps to connect StarRocks Official MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-starrocks-starrocks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-starrocks-starrocks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-starrocks-starrocks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-starrocks-starrocks": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-starrocks-starrocks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-starrocks-starrocks": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-starrocks-starrocks"
      ]
    }
  }
}

FAQ

What is the purpose of the MCP Server?

The MCP Server facilitates seamless interaction between AI tools and StarRocks databases.

Is there a specific programming language required?

The server is implemented in Python, and users should have Python installed to run it.

Can I run the server locally?

Yes, you can run the server locally by configuring the environment variables and using the local directory.