SchemaLabsDocs
Docs · Integrations

MCP server

Use Schema from your AI. One remote server for Claude, ChatGPT, Cursor, VS Code, Gemini CLI, and any MCP client. Sign in or use an API key. Everything on the platform and the API, with the same output bundle.

Schema is available natively in Claude, ChatGPT, Cursor, and any MCP client. Your AI hands Schema raw tables and databases; Schema returns the data understanding, how the sources relate, what is missing, and what can be predicted from it. One remote server, nothing to install:

https://mcp.schemalabs.ai/mcp

Everything on the platform and the API is available over MCP. A result is the same output bundle the API returns.

Add the server

Every client points at the same URL. Pick yours.

Claude.ai, Claude Desktop, Cowork
Settings › Connectors › Add custom connector

Name        Schema
Server URL  https://mcp.schemalabs.ai/mcp

Any other MCP client: add a remote server with the URL above. Agent frameworks connect the same way; see Agent frameworks.

Sign in

Sign in with your SchemaLabs account, or use an API key instead, where your client supports it. Your client prompts for whichever it offers on first use.

MCP is available on Plus and above. See Plans.

Use

Everything on the platform and the API, available over MCP. Ask in your own words: run Schema on a table, connect a source, create an endpoint, read a report.

Inline tables suit small inputs; registered data suits everything else.

Access

Same rules as the API.

RuleWhat it means
Two ways inSign in with your SchemaLabs account, or choose from your API keys. Both are managed and revocable from the platform.
Nothing extra to grantWhat your account can do on the platform, it can do here. An API key does what its scopes allow, over MCP exactly as over REST.
Usage counts the same waySigned-in sessions draw from your plan. API keys bill credits at API rates. Spend caps, usage alerts, and rate limits apply unchanged, and MCP appears on the Usage page as its own line.
Your data, handled as beforeThe Data Processing Agreement and Security controls apply unchanged.

Which option a client offers is the client’s. Claude Code, Cursor, VS Code, Gemini CLI, and the agent frameworks accept either. Claude.ai, Claude Desktop, and Cowork sign in. ChatGPT and Codex sign in only.

Tools

Every platform and API operation is a tool. The list your AI sees depends on the credential: a sign-in covers read, run, serve, and manage; the delete tools need an API key that carries the delete scope.

ScopeTools
readlist_models, list_endpoints, get_endpoint, get_endpoint_logs, list_data, get_data, list_reports, get_report, list_jobs, get_job, get_usage
runpreflight, run
serveserve
managecreate, refresh, upgrade, connect_data, sync_data, pin_data, unpin_data, generate_data, cancel_job
deletedelete_endpoint, delete_data, delete_report

What to expect:

  • Cost before commitment. preflight returns the cell count, the expected time, and what the call would draw, without running anything. Read tools and preflight bill nothing.
  • Long work returns a job. Runs that take a while, and every create, refresh, and upgrade, return a job id; your AI checks it with get_job.
  • Destructive tools ask first. Delete, cancel, and unpin are marked destructive, so your client confirms with you before running them.
  • Sources with credentials belong on the platform. Register databases and cloud sources on the Data page and refer to them by id. Use connect_data for sources that need no credentials.

Tool arguments are the API’s request fields under the API’s names, and a result is the API’s response. The API reference documents both.

Agent frameworks

Any framework that consumes MCP servers connects to the same URL. Store the key in the framework’s secret store and use a dedicated, named key per integration.

import os
from crewai import Agent
from crewai_tools import MCPServerAdapter

server = {
    "url": "https://mcp.schemalabs.ai/mcp",
    "transport": "streamable-http",
    "headers": {"Authorization": f"Bearer {os.environ['SCHEMA_API_KEY']}"},
}
with MCPServerAdapter(server) as tools:
    analyst = Agent(role="data analyst", tools=tools, goal="...", backstory="...")
PlatformWhere the URL goes
GitHub CopilotVS Code, see Add the server
Amazon Bedrock AgentCoreA Gateway target of type MCP, with the key in the outbound authorization header
Snowflake Cortex agentsAn MCP tool source, with the key in the Authorization header
DatabricksThe Schema listing on Databricks Marketplace, Bearer Token authentication, key in the Unity Catalog HTTP connection
ReplitIntegrations › custom MCP server, with the key stored as a Replit secret
n8nThe MCP Client node in an AI Agent workflow, with a header credential holding the key

To design an agent around the bundle, with your own LLM narrating results, see Agents and LLMs.

Troubleshooting

You seeWhat it means
401The client has no credential, or it expired or was revoked. Sign in again, or check the key.
403 insufficient_scopeThe credential lacks the scope named in the message. Use a key with that scope, or a sign-in for anything except delete.
“needs a Schema subscription”Sign-in is not available on this organization. Connect with an API key.
“no prepaid credits on this organization”A key bills usage credits. Add credits in the platform account menu, or sign in to draw from the plan.
429A rate or size limit; the message names it. A per-run cap means the same input will not succeed on retry: split the data or create an endpoint.
A job instead of a resultThe call took longer than a synchronous call allows. Ask for the result of that job id, or call get_job.
ChatGPT or Codex asks for a keyChatGPT and Codex support sign-in only. Use a client that accepts keys if you need one.

More in Troubleshooting and Errors. Support: support@schemalabs.ai.

Next

Type to search.
    ↑↓ navigate↵ open