terno
v1.0.39Query, explore, and manage your databases through natural conversation.
Values you need
| Variable | What it is | |
|---|---|---|
TERNODBI_API_URL | required | Base URL of the TernoDBI server. Use http://127.0.0.1:8376 for a local 'ternodbi start'. Default: http://127.0.0.1:8376 |
TERNODBI_API_KEY | required secret | Access token minted with 'ternodbi manage issue_token'. Use a query token for the read-only server and an admin token for the admin server. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add terno -e 'TERNODBI_API_KEY=<TERNODBI_API_KEY>' -e TERNODBI_API_URL=http://127.0.0.1:8376 -- uvx --from terno-dbi==1.0.39 dbi-mcp queryAdd to
claude_desktop_config.json{
"mcpServers": {
"terno": {
"args": [
"--from",
"terno-dbi==1.0.39",
"dbi-mcp",
"query"
],
"command": "uvx",
"env": {
"TERNODBI_API_KEY": "<TERNODBI_API_KEY>",
"TERNODBI_API_URL": "http://127.0.0.1:8376"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"terno": {
"args": [
"--from",
"terno-dbi==1.0.39",
"dbi-mcp",
"query"
],
"command": "uvx",
"env": {
"TERNODBI_API_KEY": "<TERNODBI_API_KEY>",
"TERNODBI_API_URL": "http://127.0.0.1:8376"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "TERNODBI_API_KEY",
"id": "ternodbi-api-key",
"password": true,
"type": "promptString"
},
{
"description": "TERNODBI_API_URL",
"id": "ternodbi-api-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"terno": {
"args": [
"--from",
"terno-dbi==1.0.39",
"dbi-mcp",
"query"
],
"command": "uvx",
"env": {
"TERNODBI_API_KEY": "${input:ternodbi-api-key}",
"TERNODBI_API_URL": "${input:ternodbi-api-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.terno]
command = "uvx"
args = ["--from", "terno-dbi==1.0.39", "dbi-mcp", "query"]
env = { "TERNODBI_API_KEY" = "<TERNODBI_API_KEY>", "TERNODBI_API_URL" = "http://127.0.0.1:8376" }Remote (hosted)
Run in a terminal
claude mcp add --transport http terno https://mcp.terno.ai/mcp/previewAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"terno": {
"args": [
"-y",
"mcp-remote",
"https://mcp.terno.ai/mcp/preview"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"terno": {
"url": "https://mcp.terno.ai/mcp/preview"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"terno": {
"type": "http",
"url": "https://mcp.terno.ai/mcp/preview"
}
}
}Add to
~/.codex/config.toml[mcp_servers.terno]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.terno.ai/mcp/preview"]For AI agents
- Ask the user for: TERNODBI_API_URL, TERNODBI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: terno_guide, get_org_prompt, grep_org_prompt, list_datasources, list_tables, list_table_columns, execute_query, get_sample_data, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json