1. Conduid
  2. Data
  3. Trifle CLI
MCP server · Data

Trifle CLI

CLI for querying and pushing time-series metrics. Works with Trifle App API or local databases. MCP server mode for AI agents.

Unclaimed NOASSERTION last commit 6 months ago redisdataai-agentsmcpmetricspostgresqlclimongodbmysql
62Good

Scored 9 hours ago · breakdown

About Trifle CLI

Trifle CLI is an MCP server published by trifle-io in the Data category: cLI for querying and pushing time-series metrics. Works with Trifle App API or local databases. MCP server mode for AI agents. It has been installed 0 times through Conduid.

The repository has 1 stars and 0 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx trifle-cli

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Trifle CLI

Powered by Claude · Grounded in docs

I know everything about Trifle CLI. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.9.0v0.9.0 · 19 Aug 2026Changelog 63488121cc2a3c35f02157da47be1f64b03c314a feat: use source header in API requests
v0.8.0v0.8.0 · 19 Aug 2026Changelog e16ddcea1a58e7991ee2efc7db055ff64377cea4 feat: update Go stats dependency and better token handling f2d6cd89de9465b47b2fa06d951c369869136f20 feat: upload local SQLite files
v0.7.0v0.7.0 · 2 Mar 2026Changelog 19683d02ddb9ad99a915e95ece2888098ad65f04 feat: add bootstrap functionality
v0.6.0v0.6.0 · 25 Feb 2026Changelog 9e44860dd370ddc2b372bd51f4da6d3c5db37474 feat: add install.sh script b1282515cab49e726eddeb59286ff5eb60413795 feat: improve SQLite compatibility e4cbb3291b249c85a815532522d5feed3b55fe8c feat: update README with install…
v0.5.1v0.5.1 · 21 Feb 2026Changelog cf2c6dbfd8f858d9f0ae034e7b721ac5899d4567 fix: bake in correct version

README

Trifle CLI

Query and push time-series metrics from your terminal. Works with Trifle App via API or directly against local databases (SQLite, Postgres, MySQL, Redis, MongoDB). Ships an MCP server mode for AI agent integration.

Part of the Trifle ecosystem.

Trifle CLI

Install

Homebrew (macOS/Linux):

brew install trifle-io/trifle/trifle

Shell script (macOS/Linux):

curl -sSL https://get.trifle.io | sh

Go:

go install github.com/trifle-io/trifle-cli@latest

Build locally (Go 1.24+):

go build -o trifle .

Quick Usage

Bootstrap Trifle App access

# Login (stores user token in config)
trifle auth login --url https://app.trifle.io --email user@example.com --password '<password>'

# Create a source and mint a source token
trifle source create project --name "Agent Project"
trifle source list
trifle source token create --source-type project --source-id <PROJECT_ID> --save --activate

# Optional: upload a local SQLite file when creating a database source
trifle source create database --display-name "SQLite Upload" --driver sqlite --sqlite-file ./metrics.sqlite

Query metrics from Trifle App

trifle metrics get \
  --key event::signup \
  --from 2026-02-10T00:00:00Z \
  --to 2026-02-16T00:00:00Z \
  --granularity 1h

Track metrics locally

# Set up a local SQLite database
trifle metrics setup --driver sqlite --db ./stats.db

# Push a metric
trifle metrics push --driver sqlite --db ./stats.db \
  --key event::signup --values '{"count":1}'

# Query it back
trifle metrics get --driver sqlite --db ./stats.db \
  --key event::signup \
  --from 2026-02-10T00:00:00Z --to 2026-02-16T00:00:00Z \
  --granularity 1h

Use with any database

# PostgreSQL
trifle metrics setup --driver postgres --dsn "postgres://user:pass@localhost:5432/myapp"

# MySQL
trifle metrics setup --driver mysql --host 127.0.0.1 --port 3306 --user root --database myapp

# MongoDB
trifle metrics setup --driver mongo --dsn mongodb://127.0.0.1:27017 --database myapp

# Redis
trifle metrics get --driver redis --prefix trifle:metrics --key event::signup \
  --from 2026-02-10T00:00:00Z --to 2026-02-16T00:00:00Z --granularity 1h

MCP Server Mode

Run Trifle CLI as an MCP server so AI agents (Claude, GPT, etc.) can query and track metrics:

trifle mcp serve

This enables AI agents to read your analytics, track their own token/cost usage, and generate insights through the standard MCP protocol.

Buffering

Configure write buffering for high-throughput local tracking:

trifle metrics push \
  --driver postgres --dsn "postgres://localhost:5432/myapp" \
  --key event::signup --values '{"count":1}' \
  --buffer-mode auto \
  --buffer-duration 2s \
  --buffer-size 500 \
  --buffer-aggregate

Documentation

Full reference at docs.trifle.io/trifle-cli

Trifle Ecosystem

Component What it does
Trifle App Dashboards, alerts, scheduled reports, AI-powered chat. Cloud or self-hosted.
Trifle::Stats (Ruby) Time-series metrics library for Ruby.
Trifle.Stats (Elixir) Time-series metrics library for Elixir.
Trifle Stats (Go) Time-series metrics library for Go.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/trifle-io/trifle-cli.

License

Available under the Elastic License 2.0. See LICENSE for details.

README mirrored from the source repository 9 hours ago. The original is authoritative.

Questions

About Trifle CLI

How do I install Trifle CLI?

Run npx trifle-cli, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Trifle CLI safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Trifle CLI still maintained?

Yes — the latest release is v0.9.0 (19 Aug 2026), and the last commit was 6 months ago. The repository has 1 stars and 0 open issues.