{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.terno-ai/terno",
  "slug": "io.github.terno-ai.terno",
  "title": "terno",
  "summary": "Query, explore, and manage your databases through natural conversation.",
  "version": "1.0.39",
  "serverKey": "terno",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.terno-ai.terno",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.terno-ai.terno/install.md",
  "trust": {
    "score": 89,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T13:29:13.766434523Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "terno-dbi==1.0.39",
        "dbi-mcp",
        "query"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "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 query"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"terno\": {\n      \"args\": [\n        \"--from\",\n        \"terno-dbi==1.0.39\",\n        \"dbi-mcp\",\n        \"query\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"TERNODBI_API_KEY\": \"<TERNODBI_API_KEY>\",\n        \"TERNODBI_API_URL\": \"http://127.0.0.1:8376\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"terno\": {\n      \"args\": [\n        \"--from\",\n        \"terno-dbi==1.0.39\",\n        \"dbi-mcp\",\n        \"query\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"TERNODBI_API_KEY\": \"<TERNODBI_API_KEY>\",\n        \"TERNODBI_API_URL\": \"http://127.0.0.1:8376\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"TERNODBI_API_KEY\",\n      \"id\": \"ternodbi-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"TERNODBI_API_URL\",\n      \"id\": \"ternodbi-api-url\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"terno\": {\n      \"args\": [\n        \"--from\",\n        \"terno-dbi==1.0.39\",\n        \"dbi-mcp\",\n        \"query\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"TERNODBI_API_KEY\": \"${input:ternodbi-api-key}\",\n        \"TERNODBI_API_URL\": \"${input:ternodbi-api-url}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.terno]\ncommand = \"uvx\"\nargs = [\"--from\", \"terno-dbi==1.0.39\", \"dbi-mcp\", \"query\"]\nenv = { \"TERNODBI_API_KEY\" = \"<TERNODBI_API_KEY>\", \"TERNODBI_API_URL\" = \"http://127.0.0.1:8376\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://mcp.terno.ai/mcp/preview",
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http terno https://mcp.terno.ai/mcp/preview"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"terno\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.terno.ai/mcp/preview\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"terno\": {\n      \"url\": \"https://mcp.terno.ai/mcp/preview\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"terno\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.terno.ai/mcp/preview\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.terno]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://mcp.terno.ai/mcp/preview\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "TERNODBI_API_URL",
      "required": true,
      "secret": false,
      "description": "Base URL of the TernoDBI server. Use http://127.0.0.1:8376 for a local 'ternodbi start'.",
      "help": "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",
      "placeholder": "http://127.0.0.1:8376"
    },
    {
      "name": "TERNODBI_API_KEY",
      "required": true,
      "secret": true,
      "description": "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.",
      "help": "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.",
      "placeholder": "<TERNODBI_API_KEY>"
    }
  ],
  "expectedTools": [
    "terno_guide",
    "get_org_prompt",
    "grep_org_prompt",
    "list_datasources",
    "list_tables",
    "list_table_columns",
    "execute_query",
    "get_sample_data",
    "list_memories",
    "get_memory",
    "grep_memory"
  ],
  "agentSteps": [
    "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."
  ],
  "generatedAt": "2026-12-01T13:29:13.766434523Z"
}
