Get Started →
DocsSDK & ExamplesAPI Reference
Getting Started / Quickstart

Connect via Model Context Protocol (MCP)

Expose secure database schema context and API endpoints directly to agentic coding tools with strict safety controls.

RaksHex acts as a Model Context Protocol (MCP) host, allowing AI coding assistants to retrieve database schema metadata and query logs while enforcing granular security policies, allowlists, and execution bounds.

Setup MCP Server

To run the RaksHex MCP server locally, reference it in your Claude Desktop or Cursor configuration file (usually located at %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "RaksHex-mcp": {
      "command": "npx",
      "args": ["-y", "@rakshex/mcp-server", "--key", "ik_26f99572954998ec678ac9ecbf27031f"]
    }
  }
}

Exposed Tools

  • get_allowed_tables: Retrieve tables that are allowlisted for AI agent context querying.
  • get_query_log: Review recent SQL queries executed by AI agents.
  • evaluate_safety: Run the LLM input through the RaksHex prompt injection classifier.