GraphMyAnything
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GMA_API_KEY | No | Hosted mode API key (overrides config file). Alternative to GRAPHMYANYTHING_API_KEY. | |
| GRAPHMYANYTHING_MODE | No | Set to `local` to force local mode. | |
| GRAPHMYANYTHING_API_KEY | No | Hosted mode API key (overrides config file). | |
| GRAPHMYANYTHING_DB_PATH | No | Custom SQLite file path. Defaults to ~/.graphmyanything/metrics.db. | |
| GRAPHMYANYTHING_API_BASE | No | Override hosted API base (testing). | |
| GRAPHMYANYTHING_CHARTS_DIR | No | Custom chart output directory. Defaults to charts/ next to the DB when the DB path is custom; otherwise ~/.graphmyanything/charts/. | |
| GRAPHMYANYTHING_CONFIG_PATH | No | Custom path for config.json. Defaults to ~/.graphmyanything/config.json (mode 0600). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
If graphmyanything tools are not in your tool list, stop and ask the user to enable graphmyanything in their client's MCP settings. Never read ~/.graphmyanything or any credentials file, never call the hosted API directly, and never drive the stdio server by hand. Metric names: namespace.metric.unit. Send ALL points in one track call (points[], points_csv, or points_json)—no batching. Free reads last 90 days by point timestamp (older stored, hidden until Pro). Multi-metric charts need Pro. Call guide (usage|chart) for more.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| trackA | Upsert by metric+ts; written/replaced counts. Free reads last 90d by point ts; send all points at once. |
| queryD | Summary + optional LTTB series. |
| insightC | Trend, anomalies, naive forecast. |
| forgetB | Delete points (metric required). Whole metric: all:true and confirm:true. |
| chartC | SVG; align:season overlays years on M/D axis. Multi (2–5) needs Pro. guide topic chart. |
| guideC | Full usage or chart markdown (topic usage|chart; omit for both). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| chart-guide | When to pick line/bar/area, theme, labels, range, and season overlay for the chart tool |
| usage-guide | When to track, query, insight, or chart — naming, idempotency, freshness, token hints |
TDQS
Scored across 6 tools
Each tool has a distinct role: track writes, query reads summaries/series, insight analyzes, forget deletes, guide documents, and chart renders SVG. The main overlap is that query, insight, and chart all retrieve/derive from stored data, and the terse descriptions (LTTB, align:season) leave minor room for misselection, but output differences make them largely distinguishable.
All names are lowercase single-word tokens, which gives a consistent surface style, but the set mixes verbs (track, forget, query) with nouns (insight, chart, guide) rather than following a verb_noun pattern. It remains readable but the grammatical inconsistency is noticeable.
Six tools is well within the ideal 3–15 range and each tool maps to a distinct lifecycle action (ingest, read, analyze, visualize, delete, docs). No tool appears redundant or bloated for a time-series metrics server.
The core lifecycle is covered: upsert (track), read (query), analyze (insight), render (chart), delete (forget), and documentation (guide). The notable gap is the absence of a list/discover-metrics operation, so an agent must already know metric names to query or delete them.