Model Context Protocol (MCP)
Altertable's MCP server gives AI clients a governed way to interact with your lakehouse.
Goal
Connect an MCP-compatible AI client to Altertable, authorize one environment, and verify that the client can discover Altertable tools and catalogs.
Prerequisites
- An Altertable account with access to the organization and environment you want to query.
- An AI client that supports hosted MCP servers over streamable HTTP and OAuth 2.0.
Clients that only support local stdio servers cannot connect to Altertable's hosted MCP server.
Steps
1. Add the server
Setting | Value |
|---|---|
Server URL | https://mcp.altertable.ai/mcp |
Transport | Streamable HTTP |
Authentication | OAuth 2.0 |
- Add
https://mcp.altertable.ai/mcpas an MCP server in your client. - Start the connection or authorization flow.
- Log in to Altertable in the browser when prompted.
- Choose the organization and environment the client should access.
- Approve the connection and return to your client.
After approval, the client uses an OAuth bearer token for MCP tool discovery and execution. Access is scoped to the environment selected during authorization. You must belong to its organization and have permission to use that environment. Tools are filtered by the granted tier, resource permissions, enabled product features, and connected integrations. Reconnect and authorize again to change the environment or scope.
Start with https://mcp.altertable.ai/mcp and grant Read-only access for exploration. Choose Analyst when you need to create analyses or data apps. Choose Full access only when you need lakehouse writes or schema changes.
Pin a scope
Choose the least access your workflow needs during authorization. The default endpoint accepts all three tiers. To request a specific access level up front, use a pinned endpoint:
Access | Endpoint |
|---|---|
| Read-only | https://mcp.altertable.ai/mcp/read-only |
| Analyst | https://mcp.altertable.ai/mcp/analyst |
| Full access | https://mcp.altertable.ai/mcp/read-write |
The glossary maps each display label to its endpoint and OAuth scope.
A pinned endpoint requires its exact tier, even if your token grants broader access. A mismatch returns 403 insufficient_scope. Use the default endpoint when the client should choose access during authorization.
For example, to add a read-only connection in Claude Code:
claude mcp add --transport http altertable-mcp https://mcp.altertable.ai/mcp/read-only
2. Let the client discover OAuth settings
Compatible clients should discover OAuth settings automatically and follow the metadata URL in the server’s WWW-Authenticate challenge. Pinned endpoints provide path-specific metadata. Altertable supports protected resource metadata, authorization server discovery, and dynamic client registration.
Purpose | URL |
|---|---|
MCP server endpoint | https://mcp.altertable.ai/mcp |
Protected resource metadata | |
Authorization server metadata |
When a client calls an authenticated MCP method without a valid token, Altertable may return a WWW-Authenticate: Bearer ... challenge that points the client to the protected resource metadata.
3. Review tool permissions
MCP tools can list catalogs and semantic models, query the lakehouse, validate SQL, view insights and dashboards, and create outputs such as insights, memories, notifications, and scheduled tasks when the granted tier and resource permissions allow it.
For the exact tool schema, see MCP tools.
Verification
Ask the connected client:
The client should discover the Altertable tools, request authorization if needed, and return catalogs from the environment selected during authorization.
Troubleshooting
- Client cannot connect: confirm it supports hosted MCP over streamable HTTP and OAuth.
- Discovery does not start: use exactly
https://mcp.altertable.ai/mcp(or/mcp/read-only,/mcp/analyst, or/mcp/read-writeif you pinned a scope). - Browser login loops: finish authorization in the browser window opened by the client.
- No tools appear: reconnect so the client reruns discovery, authorization, and tool listing.
- Wrong environment: reconnect and choose the correct environment during authorization.
- 403 on a pinned endpoint: the token's granted scope doesn't match the endpoint (e.g. a read-only token used against
/mcp/read-write). Reauthorize with the matching scope, or connect to the barehttps://mcp.altertable.ai/mcpendpoint instead.
Next steps
- Review MCP tools to see the exact schemas and permissions.
- Set up an AI client with client-specific instructions.
- Install the Altertable CLI for terminal automation and structured agent output.