MCP Server
Your data,
in any AI agent
Connect Claude, ChatGPT, or your own agent to your data. Terno keeps every query secure, accurate, and governed.
- Read-only for databases: only SELECT queries run.
- Controlled writes for apps: admin approval and dry-run.
- Your rules apply: private tables, columns and rows.
- No passwords in the chat: OAuth sign-in, encrypted credentials.
Using Cursor, Claude Code or your own agent? How to connect ↓
Connect your agent
Add Terno as a custom MCP connector
https://mcp.terno.ai/mcp {
"mcpServers": {
"terno": { "url": "https://mcp.terno.ai/mcp" }
}
} https://mcp.terno.ai/mcp/preview {
"mcpServers": {
"terno-preview": {
"url": "https://mcp.terno.ai/mcp/preview"
}
}
} How it works
From your data to any agent
Terno
secure query layer
Ask from
Any AI agent
App connectors work in the Terno Agent and on the preview MCP endpoint today. The main MCP endpoint covers connected databases and warehouses.
AI clients
Use it from the agent you already have
Terno speaks the open Model Context Protocol, so any MCP client can connect with one URL and an OAuth sign-in.
The layer in between
More than a pipe to your data
Giving an AI raw database access is risky and often wrong. Terno checks every query before it runs.
Security
- SQLShield: only read-only SELECT queries run.
- Access rules: hide tables and columns, limit rows by role.
- Encrypted credentials: entered in Terno, never in the chat.
Accuracy
- Real schema: tables, columns, types, and sample rows.
- Plain-English labels: names and descriptions guide the AI.
- Team context: saved notes and a shared org prompt.
Governance
- OAuth consent: standard sign-in, revocable any time.
- Roles: members read; only org admins can write.
- Safe writes: explicit write permission, with dry-run for app changes.
Examples
Ask your agent
Plain questions in Claude, ChatGPT, or any MCP client, answered from your own data.
“Which 10 products brought in the most revenue last month?”
“How many new customers signed up each week this quarter?”
“Compare average order value by country, this year vs last.”
“Which of my databases have a customers table, and what columns does it have?”
“Add a note explaining why the legacy_users table should be ignored.”
“Which Google Ads campaigns had the lowest cost per conversion?”
The Google Ads example uses the preview endpoint. Every other example works on the main endpoint today.
How to connect
Connect in a minute
Just want answers? The Terno Agent in Terno AI needs no setup. Open Terno AI →
claude.ai and Claude Desktop. Free plans can add one custom connector.
Copy this
https://mcp.terno.ai/mcp Preview server (adds app connectors)
https://mcp.terno.ai/mcp/preview ChatGPT Business and Enterprise/Edu on the web. Workspace admins and owners add it.
Copy this
https://mcp.terno.ai/mcp Preview server (adds app connectors)
https://mcp.terno.ai/mcp/preview Terminal coding agent.
Copy this
claude mcp add --transport http terno https://mcp.terno.ai/mcp Preview server (adds app connectors)
claude mcp add --transport http terno-preview https://mcp.terno.ai/mcp/preview AI code editors.
Config
{
"mcpServers": {
"terno": { "url": "https://mcp.terno.ai/mcp" }
}
} Preview server (adds app connectors)
{
"mcpServers": {
"terno-preview": {
"url": "https://mcp.terno.ai/mcp/preview"
}
}
} Any framework that speaks MCP, or a self-hosted layer.
Config
pip install terno-dbi
ternodbi start Hosted preview server
https://mcp.terno.ai/mcp/preview Using Windsurf, Gemini CLI, Antigravity, Lovable, or self-hosting? See all setup guides.
Frequently Asked Questions
What is the Terno MCP server? +
It is a hosted Model Context Protocol endpoint at https://mcp.terno.ai/mcp. It lets AI assistants such as Claude and ChatGPT query the data sources you have connected in Terno, through Terno's secure query layer.
Can the AI change or delete my data? +
Not in your databases or warehouses: every SQL query is checked by SQLShield, and only read-only SELECT statements are allowed. Some app connectors, such as Google Ads, can also take actions; these need an organisation admin and write permission, and can be previewed with a dry run first. Write access, available only to organisation admins, changes Terno's own records such as descriptions and notes, never your database.
Which data sources work over MCP? +
Databases and warehouses connected in Terno, such as PostgreSQL, MySQL, Snowflake, BigQuery, Databricks, and Oracle. App connectors such as Google Ads and GA4 work in the Terno Agent today, and over MCP through the preview endpoint https://mcp.terno.ai/mcp/preview. They are coming to the main endpoint soon.
Do I share my database password with the AI? +
No. Connection details are entered directly in Terno over an authenticated web session. The assistant only receives a link to that page, never a credential.
How do I revoke access? +
Remove the connector in your AI app, or revoke it from your Terno account at any time.
Contact
Talk to our team.
Have a question, need a demo, or want help with onboarding or pricing? Send us a message and we'll get back to you shortly.
-
Email
reachus@terno.ai - Phone
-
Phone
+1 (412) 568-3901 - Address
-
Address
9450 SW Gemini Dr, PMB 90168, Beaverton, Oregon 97008-7105, United States