---
title: Genie Agent MCP server
description: Use the Genie Agent MCP server on Databricks to query a single Genie Agent with natural language and bring governed analytics into your AI agents.
canonical_url: https://docs.databricks.com/gcp/en/agents/mcp-tools/genie-agent
---

# Genie Agent MCP server

> [!NOTE]
> **Preview**
>
> This feature is in [Public Preview](https://docs.databricks.com/gcp/en/release-notes/release-types.md).

The Genie Agent MCP server lets an agent query a single [Genie Agent](https://docs.databricks.com/gcp/en/genie-agents/index.md) with natural language, without writing SQL. The agent sends a plain-language question, and Genie writes and runs the SQL against that agent's tables and returns the result, with Unity Catalog permissions enforced on every request.

> [!TIP]
>
> To query a Genie Agent from Python without MCP, use [AI Bridge tool examples](https://docs.databricks.com/gcp/en/agents/custom-agents/structured-retrieval-tools.md#genie-python). For business questions across your workspace, use the [Genie One MCP (`system.ai.genie_one_mcp`)](https://docs.databricks.com/gcp/en/agents/mcp-tools/genie-mcp.md).

A Genie Agent is a collection of up to 50 Unity Catalog tables, views, or metric views that Genie keeps in context, so the server is scoped to that curated data rather than your whole workspace.

| URL pattern                                                       | OAuth scope |
| ----------------------------------------------------------------- | ----------- |
| `https://<workspace-hostname>/api/2.0/mcp/genie/{genie_agent_id}` | `genie`     |

To find the Genie Agent ID (formerly the space ID), open the Genie Agent and copy the ID from its **Settings** tab.

Calls to this endpoint don't go through Unity Gateway. Access depends on [permissions on the Genie Agent](https://docs.databricks.com/gcp/en/genie-agents/set-up.md#share) and its underlying data. Unity Gateway tracing, MCP grants, policies, and guardrails don't apply. To compare use cases and governance, see [Choose between Genie One, Genie Agent, and Databricks SQL MCP servers](https://docs.databricks.com/gcp/en/agents/mcp-tools/built-in-mcp-services.md#genie-one-versus-databricks-sql).

Genie Agent MCP calls use [Databricks SQL pricing](https://www.databricks.com/product/pricing/databricks-sql).

## <a id="prerequisites" />Prerequisites

A workspace administrator must enable **Managed MCP Servers** on the workspace [Previews page](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md#workspace).

## Connect an agent

To connect an agent to a Genie Agent MCP server, create a Genie Agent, share it with the users or service principals that need access, and point your agent at its pre-configured MCP URL. Follow [Use MCP tools in a Python agent](https://docs.databricks.com/gcp/en/agents/custom-agents/use-mcp-tools.md), setting `server_url` to the URL above.

To connect external clients such as Cursor or Claude Desktop, see [Supported coding and work agents](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-supported-agents.md).

## Limitations

* **Read-only.** The Genie Agent MCP server queries data; it doesn't write to your tables.
* **No automatic conversation history.** The server invokes Genie as a tool, so it doesn't pass the agent's conversation history to the Genie API, and each call starts a new conversation by default. To continue a conversation, pass the `conversation_id` returned in the previous response as the `conversation_id` argument of the next `query_space_<space_id>` call. In Python, you can also use [AI Bridge](https://docs.databricks.com/gcp/en/agents/custom-agents/structured-retrieval-tools.md#genie-python).
