External MCP servers
Register a self-hosted or third-party MCP server so your team can use it through Unity Gateway. Create its connection as part of registration.
For a server that Databricks already provides, choose a Databricks-provided MCP. For automated setup, see the API and SDK reference.
Before you begin
You need:
- A Unity Catalog-enabled workspace and the Workspace access entitlement. Users with Consumer access can't register an MCP.
- An MCP server that supports Streamable HTTP, its URL, and its authentication details.
USE CATALOGandUSE SCHEMAon the parent catalog and schema, andCREATE SERVICEon the schema.CREATE CONNECTIONon the schema to create a connection, orUSE CONNECTIONon an existing connection.- Network access from the workspace to the server. See MCP authentication and networking.
The workspace must be in a region that supports Model Serving.
Step 1: Register the server
- In your workspace, open Unity Gateway, select MCPs, and click + MCP.
- Choose Connect an existing MCP server.
- Choose a catalog and schema, and enter an MCP name. The name can't be changed after creation.
- Select an existing HTTP connection, or click Create new connection:
- Enter the MCP server URL.
- Choose the authentication method and enter the provider's credentials. For supported providers, use managed OAuth.
- If you use OAuth with your own OAuth app, add
https://<workspace-hostname>/login/oauth/http.htmlto the app's allowed redirect URLs. Some providers reject sign-in without it. For each authentication method's fields, see Create a connection to the external service. - Click Create & load tools to save the connection and discover its tools.
- Under Tools, click Login if prompted and sign in to the provider. Then choose the tools to expose. See Tool selection for filtering options.
- Click Create MCP Service.
Use a schema-level connection for new MCPs. If you already have a metastore-level connection, click Use a metastore-level connection to select it. For a server from Marketplace, follow Install an MCP server.
Step 2: Test a tool
Test with AI Playground:
- Open AI Playground and choose a model with Tools enabled.
- Open Tools, click + Add tool, and select MCP Servers.
- Select External MCP servers, then your MCP.
- Ask the model to use a read-only tool. Confirm that it makes a tool call and returns the expected result.
For command-line tests, use the examples under Get started on the MCP's detail page. If a call fails, see MCP authentication and networking.
Step 3: Connect your agent
Use the MCP's full name, <catalog>.<schema>.<service>, in your agent's setup:
Clients that require a server URL use:
https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>
Limitations
- You can register external MCP servers. Registering Genie, Databricks Apps, or Unity Catalog entity sources as your own MCP isn't supported. Use a Databricks-provided MCP or connect directly to your server on Databricks Apps.
- SQL commands such as
CREATE MCP SERVICEaren't supported. - Unity Catalog Global Search doesn't surface MCPs. Find them on the MCPs page.