Tiger MCP

io.github.timescale由 GitHub 账号 timescale 发布v0.27.0更新于 Oct 29, 2026

Provides programmatic access to Tiger Cloud services, databases, and documentation.

概览

AI 生成的概览

Tiger MCP 让 AI 助手管理 Tiger Cloud 数据库服务:列出、创建、分叉、调整和删除服务,执行 SQL、查看模式,并检索 Postgres 文档。

可以做什么
  • 列出、查看、创建、分叉、启动、停止、重命名、调整规格、删除数据库服务并重置主密码
  • 查看服务日志,查询可用指标、指标说明与时间序列数据
  • 执行 SQL 查询(内联或来自文件、支持参数与超时),查看数据库模式与已安装扩展
  • 通过代理的文档服务器语义检索 PostgreSQL、TimescaleDB 与 Tiger Cloud 文档并获取功能指南
  • 向 Tiger Data 团队提交反馈或缺陷报告
适用场景
适合使用 Tiger Cloud 或 TimescaleDB 的场景:希望助手直接管理数据库服务、执行查询、读取模式,而不必切换到终端,或在编码时查阅 Postgres 文档。
运行要求
以本地进程运行,需先安装 tiger CLI(安装脚本、Homebrew、apt、yum、Go 或容器镜像),再用 tiger mcp start 启动。需要 Tiger Cloud 账号并通过 tiger auth login 登录,或提供 TIGER_PUBLIC_KEY 与 TIGER_SECRET_KEY 环境变量。仅限桌面端,需能访问 Tiger Cloud 网络。
安装前请注意
助手可以改动基础设施:创建、分叉、调整规格、停止以及永久删除服务,并重置主密码;SQL 查询也可能写入或删除数据。凭据保存在 TIGER_PUBLIC_KEY、TIGER_SECRET_KEY 或本地配置文件中。read_only 默认是 off,不提供任何保护;设为 all 或 prod 才能阻止写操作。文档代理默认开启,会把查询发送到远程文档服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Tiger MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Tiger CLI

Tiger CLI is the command-line interface for Tiger Cloud. It provides commands for managing and querying database services, as well as an integrated Model Context Protocol (MCP) server for use with AI assistants.

Installation

Multiple installation methods are provided. Choose your preferred method from the options below. If you aren't sure, use the first one!

Install Script (macOS/Linux/WSL)

bash
curl -fsSL https://cli.tigerdata.com | sh

Install Script (Windows)

powershell
irm https://cli.tigerdata.com/install.ps1 | iex

Homebrew (macOS/Linux)

bash
brew install --cask timescale/tap/tiger-cli

Debian/Ubuntu

bash
# Add repositorycurl -s https://packagecloud.io/install/repositories/timescale/tiger-cli/script.deb.sh | sudo os=any dist=any bash
# Install tiger-clisudo apt-get install tiger-cli

For manual repository installation instructions, see here.

Red Hat/Fedora

bash
# Add repositorycurl -s https://packagecloud.io/install/repositories/timescale/tiger-cli/script.rpm.sh | sudo os=rpm_any dist=rpm_any bash
# Install tiger-clisudo yum install tiger-cli

For manual repository installation instructions, see here.

Go Install

bash
go install github.com/timescale/tiger-cli/cmd/tiger@latest

Updating

To upgrade an existing installation to the latest release:

bash
tiger upgrade

This downloads the latest published binary, verifies its checksum, and replaces the currently running binary in place. If Tiger CLI was installed via a package manager (Homebrew, apt, yum/dnf), tiger upgrade will instead point you at the matching package-manager command.

Quick Start

After installing Tiger CLI, authenticate with your Tiger Cloud account:

bash
# Login to your Tiger accounttiger auth login
# View available commandstiger --help
# List your database servicestiger service list
# Create a new database servicetiger service create --name my-database
# Get connection stringtiger db uri
# Connect to your databasetiger db psql
# Run a query without psqltiger db query -c "SELECT now()"
# Install the MCP servertiger mcp install
# Install agent skills for your coding agenttiger skills install

Usage

Tiger CLI provides the following commands:

  • tiger auth - Authentication management
    • login - Log in to your Tiger account (use --headless to authorize with a short code in a browser on any machine)
    • logout - Log out from your Tiger account
    • status - Show current authentication status and project ID (alias: whoami)
  • tiger project - Project management
    • list - List all projects you have access to, marking the active one (alias: ls)
    • use - Switch the active project (requires an OAuth login; clears the default service_id, since it belonged to the previous project) (alias: switch)
  • tiger service - Service lifecycle management (aliases: services, svc)
    • list - List all services (alias: ls)
    • create - Create a new service
    • get - Show detailed service information (aliases: describe, show)
    • fork - Fork an existing service
    • start - Start a stopped service (alias: resume)
    • stop - Stop a running service (alias: pause)
    • rename - Rename a service
    • resize - Resize service CPU and memory allocation
    • delete - Delete a service (alias: rm)
    • update-password - Update service master password
    • logs - View service logs (alias: log)
    • metrics available - List the metric names available for a service
    • metrics details - Show a metric's description, type, default aggregation and labels
    • metrics series - Fetch a metric's time series, with label filters, an aggregation function, group by and bucket size
  • tiger db - Database operations
    • psql - Connect to a database with psql (in an interactive terminal, if the service has read replicas, offers to connect to one of them; use --no-replica-prompt to skip) (alias: connect)
    • query - Execute a SQL query against a database and display the results, without needing psql (alias: sql)
    • uri - Get connection URI for a service (alias: connection-string)
    • ping - Test database connectivity (aliases: test, test-connection)
    • schema - Display database schema information (tables, views, indexes, functions, TimescaleDB hypertables, and more)
    • extensions list - List the PostgreSQL extensions installed in a database, with their versions and schemas (aliases: ext ls)
    • save-password - Save a database password to configured password storage (keyring, pgpass, or none)
    • create role - Create a new database role, with optional read-only enforcement, inherited grants (--from), and statement timeout (alias: create user)
  • tiger config - Configuration management (alias: cfg)
    • list - List current configuration (aliases: ls, show)
    • set - Set configuration value
    • unset - Remove configuration value (aliases: rm, delete)
    • reset - Reset configuration to defaults (alias: clear)
  • tiger mcp - MCP server setup and management
    • install - Install and configure MCP server for an AI assistant (alias: add)
    • start - Start the MCP server
    • list - List available MCP tools, prompts, and resources (alias: ls)
    • get - Get detailed information about a specific MCP capability (aliases: describe, show)
  • tiger skills - Agent skills for AI coding agents
    • install - Install PostgreSQL and TimescaleDB skills for AI coding agents (alias: add)
  • tiger feedback - Submit feedback or a bug report to the Tiger Data team (pass the message as an argument or on stdin)
  • tiger version - Show version information
  • tiger upgrade - Upgrade the Tiger CLI to the latest version (alias: update)

Use tiger <command> --help for detailed information about each command, or browse the generated CLI reference.

Naming a Service

Anywhere a command takes a service as an argument, it takes either its ID (or a read replica set ID) or its name:

bash
tiger db psql my-api-dbtiger service stop my-api-db

Names are matched exactly. A name that matches more than one service is refused; run tiger service list to find the ID you want. A default service (tiger config set service_id, --service-id, or TIGER_SERVICE_ID) must be an ID, and destructive commands still ask you to type the ID to confirm. The MCP tools take IDs only.

MCP Server

Tiger CLI includes a Model Context Protocol (MCP) server that enables AI assistants like Claude Code to interact with your Tiger Cloud infrastructure. The MCP server provides programmatic access to database services and operations.

Installation

Configure the MCP server for your AI assistant:

bash
# Interactive installation (prompts for client selection)tiger mcp install
# Or specify your client directlytiger mcp install claude-code      # Claude Codetiger mcp install codex            # Codextiger mcp install copilot          # GitHub Copilot CLItiger mcp install cursor           # Cursor IDEtiger mcp install devin            # Devintiger mcp install gemini           # Gemini CLItiger mcp install vscode           # VS Code

After installation, restart your AI assistant to activate the Tiger MCP server.

Manual Installation

If your MCP client is not supported by tiger mcp install, follow the client's instructions for installing MCP servers. Use tiger mcp start as the command to start the MCP server. For example, many clients use a JSON file like the following:

json
{  "mcpServers": {    "tiger": {      "command": "tiger",      "args": [        "mcp",        "start"      ]    }  }}
Streamable HTTP Protocol

The above instructions install the MCP server using the stdio transport. If you need to use the Streamable HTTP transport instead, you can start the server with tiger mcp start http --port 8080 and install it into your client using http://localhost:8080 as the URL.

Available MCP Tools

The MCP server exposes the following tools to AI assistants:

Service Management:

  • service_list - List all database services in your project
  • service_get - Get detailed information about a specific service
  • service_create - Create new database services with configurable resources
  • service_fork - Fork an existing database service to create an independent copy
  • service_start - Start a stopped database service
  • service_stop - Stop a running database service
  • service_rename - Rename a database service
  • service_resize - Resize a database service by changing CPU and memory allocation
  • service_delete - Permanently delete a database service (asks you to confirm first if the service is tagged PROD)
  • service_update_password - Set a new, randomly generated master password for a service (asks you to confirm first if the service is tagged PROD)
  • service_logs - View logs for a database service

Service Metrics:

  • service_metrics_available - List the metric names available for a service (hardware usage, PostgreSQL settings and activity, PgBouncer pools, TimescaleDB internals)
  • service_metrics_details - Show a metric's description, type, default aggregation and labels
  • service_metrics_series - Fetch a metric's time series over a time window, with label filters, an aggregation function, group by and bucket size

Database Operations:

  • db_query - Execute SQL queries against a database service, passed inline or as a path to a SQL file, with support for parameterized queries, custom timeouts, and connection pooling
  • db_schema - Display a service's database schema (tables, views, materialized views, enums, functions, procedures, indexes, triggers, and TimescaleDB hypertable/continuous aggregate metadata) as readable text for an agent's context
  • db_extensions_list - List the PostgreSQL extensions installed in a service database, with each extension's version, schema, and description

Feedback:

  • feedback - Submit feedback or a bug report to the Tiger Data team

The MCP server automatically uses your CLI authentication and configuration, so no additional setup is required beyond tiger auth login.

Proxied Tools

In addition to the service management tools listed above, the Tiger MCP server also proxies tools from a remote documentation MCP server. This feature provides AI assistants with semantic search capabilities for PostgreSQL, TimescaleDB, and Tiger Cloud documentation, as well as prompts/guides for various Tiger Cloud features.

The proxied documentation server (pg-aiguide) currently provides the following tools:

  • view_skill - Retrieve comprehensive guides for Postgres and TimescaleDB features and best practices
  • search_docs - Search PostgreSQL and TimescaleDB documentation using natural language queries

This proxy connection is enabled by default and requires no additional configuration.

To disable the documentation proxy:

bash
tiger config set docs_mcp false

Agent Skills

Tiger CLI can install curated PostgreSQL and TimescaleDB skills directly into your coding agents:

bash
# Interactive installation (prompts for install locations)tiger skills install
# Or name the locations directlytiger skills install universal claude-code

Skills are installed for the current user. The universal location, ~/.agents/skills, is read by most coding agents (Cursor, Codex, Gemini CLI, VS Code, GitHub Copilot CLI, Devin). Claude Code, Kiro CLI, and Google Antigravity read their own skills directories, so they're separate locations (claude-code, kiro-cli, antigravity). Naming a client that reads ~/.agents/skills, such as cursor, selects universal. Use --skills-dir to install into a directory of your choice instead.

Re-run the command to update the skills to the latest version; skills that are no longer available are removed. With no arguments, the locations you've installed to before are selected in the picker to start with. Existing skills that weren't installed by Tiger CLI are never replaced unless you pass --force.

Configuration

The CLI stores configuration in ~/.config/tiger/config.yaml by default, and supports hierarchical configuration through environment variables and command-line flags.

bash
# List current configurationtiger config list
# Set configuration valuestiger config set output json
# Remove configuration valuetiger config unset output
# Reset to defaultstiger config reset

Configuration Options

All configuration options can be set via tiger config set <key> <value>:

  • analytics - Enable/disable analytics (default: true)

  • color - Enable/disable colored output (default: true)

  • docs_mcp - Enable/disable docs MCP proxy (default: true)

  • mcp_max_rows - Maximum number of rows the db_query MCP tool returns per result set before truncating, to limit how much data lands in an AI agent's context. Only applies to the MCP tool, not CLI commands. Default: 100

  • output - Output format: json, yaml, or table (default: table)

  • password_storage - Password storage method: keyring, pgpass, or none (default: keyring)

  • read_only - Which services this CLI may change: all, prod, or off (default: off, which protects nothing). An interactive tiger auth login offers a menu of the three modes, and records your choice either way, so it only asks until you answer once. true and on are accepted as aliases for all, and false for off, so existing config files and TIGER_READ_ONLY=true behave as before.

    Changing a protected service is refused, and so is creating one: tiger service create/fork/start/stop/rename/resize/update-password/delete and tiger db create role return an error. Connection strings for it open the session in Tiger Cloud's immutable read-only mode, so the server rejects writes and DDL — that covers tiger db psql, tiger db query, tiger db uri, the db_query MCP tool, and the connection strings embedded in tiger service output and the equivalent MCP tools.

    • all protects every service, and the MCP write tools aren't registered at all, so they don't appear in tools/list and can't be called.
    • prod protects only services tagged PROD, leaving DEV services writable. tiger service create/fork and the service_create/service_fork MCP tools are gated on the environment they request, so creating a DEV service is allowed and a PROD one is not — otherwise you could create a service this same mode then refuses to delete. Forking a PROD service into a DEV fork is allowed, since that reads production without changing it. The MCP write tools stay registered — they still work on DEV services — and refuse per call instead. These commands read the tag off the service they resolve, so the tag costs no extra API call, and the operation is refused if that lookup fails. The MCP write tools, which take IDs, fetch the service to read its tag. A read replica is judged on its own tag, so a replica of a PROD primary is protected only if that replica set is itself tagged PROD.
  • service_id - Default service ID. Cleared automatically when the active project changes: by tiger project, and by tiger auth login unless it lands on the same project as the previous login. A service belongs to the project it was created in

  • version_check - When true, the CLI checks for a newer version on each invocation (in an interactive terminal) and prints a notice if one is available. Set to false to disable. Default: true.

Environment Variables

Environment variables override configuration file values. All variables use the TIGER_ prefix:

  • TIGER_ANALYTICS - Enable/disable analytics
  • TIGER_COLOR - Enable/disable colored output
  • TIGER_CONFIG_DIR - Path to configuration directory (default: ~/.config/tiger)
  • TIGER_DOCS_MCP - Enable/disable docs MCP proxy
  • TIGER_OUTPUT - Output format: json, yaml, or table
  • TIGER_PASSWORD_STORAGE - Password storage method: keyring, pgpass, or none
  • TIGER_READ_ONLY - Which services this CLI may change: all, prod, or off (same aliases as read_only)
  • TIGER_PUBLIC_KEY - Public key to use for authentication (takes priority over stored credentials)
  • TIGER_SECRET_KEY - Secret key to use for authentication (takes priority over stored credentials)
  • TIGER_SERVICE_ID - Default service ID (a name is refused; see Naming a Service)
  • TIGER_VERSION_CHECK - When true, the CLI checks for a newer version on each invocation (in an interactive terminal) and prints a notice if one is available; false to disable

Global Flags

These flags are available on all commands and take precedence over both environment variables and configuration file values:

  • --analytics - Enable/disable analytics
  • --color - Enable/disable colored output
  • --config-dir <path> - Path to configuration directory (default: ~/.config/tiger)
  • --password-storage <method> - Password storage method: keyring, pgpass, or none
  • --service-id <id> - Service ID (a name is refused; pass one as an argument instead)
  • --version-check - Enable/disable checking for updates on startup
  • -h, --help - Show help information

Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass (go test ./...)
  6. Submit a pull request

For detailed development information, see docs/development.md.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

来源:README.md,提交 7c44f9f

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

4
  1. v0.27.0最新Oct 29, 2026
  2. v0.26.0Oct 1, 2026
  3. v0.25.0Sep 21, 2026
  4. v0.24.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分