# GraphMyAnything

> GraphMyAnything is a freemium MCP server for analytics and data. Metric memory for AI agents: track numbers once, then query, chart or forecast them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $9 a month
- **Platforms:** CLI, API, macOS, Windows, Linux, Self-hosted
- **Website:** https://graphmyanything.com
- **Repository:** https://github.com/casahome2000/graphmyanything/tree/HEAD/packages/mcp-server
- **MCP Registry name:** io.github.casahome2000/graphmyanything-mcp
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-27

## About

Instead of rebuilding throwaway scripts every session, an agent stores a numeric series under a metric name and reads it back later through a small set of MCP calls. Readings are kept in a local SQLite database by default, so history survives between sessions and between agents that share the same store.

Each read returns compact statistics such as latest value, min, max, mean, trend and percent change, along with a downsampled series sized to a token budget. A separate insight call returns a plain-English trend, flags anomalies and gives a naive linear forecast, while chart writes a 640x320 SVG and can publish a live share link once the device is synced to a hosted account.

It suits developers and operators who want an AI assistant to keep an eye on KPIs, MRR, repository stars or sensor readings without sending text history to a memory service. It is built for numbers over time only, so conversational memory needs a separate tool.

## Features

- **Track metric readings:** Upsert values by metric and timestamp, with optional tags, in one or many points per call.
- **Compact summaries:** Queries return latest, min, max, mean, trend and percent change in a short payload.
- **Token-budgeted series:** Downsampled points are fitted to a token budget so long histories stay cheap to read.
- **Trend and anomaly insight:** Plain-English trend, median-absolute-deviation anomaly flags and a naive forecast.
- **SVG charts with share links:** Dark or light charts with axis ticks and tooltips, plus hosted /c/ URLs after sync.
- **Local SQLite storage:** Metrics persist in a local database by default, with a configurable path.

## Good for

- Have a coding agent chart MRR or signups over the last 90 days on request
- Post a weekly KPI chart link into a Slack channel from an automation
- Embed an always-current metric chart in a project README
- Let several agents read the same numeric history without re-parsing files
- Flag unusual drops or spikes in a metric during a scheduled check

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add graphmyanything-mcp --env GRAPHMYANYTHING_API_KEY='<GRAPHMYANYTHING_API_KEY>' --env GMA_API_KEY='<GMA_API_KEY>' -- npx -y graphmyanything-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add graphmyanything-mcp --env GRAPHMYANYTHING_API_KEY='<GRAPHMYANYTHING_API_KEY>' --env GMA_API_KEY='<GMA_API_KEY>' -- npx -y graphmyanything-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.graphmyanything-mcp]
command = "npx"
args = ["-y", "graphmyanything-mcp"]
env = { GRAPHMYANYTHING_API_KEY = "<GRAPHMYANYTHING_API_KEY>", GMA_API_KEY = "<GMA_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GRAPHMYANYTHING_API_KEY='<GRAPHMYANYTHING_API_KEY>' -e GMA_API_KEY='<GMA_API_KEY>' graphmyanything-mcp npx -- -y graphmyanything-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "graphmyanything-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graphmyanything-mcp"
      ],
      "env": {
        "GRAPHMYANYTHING_API_KEY": "<GRAPHMYANYTHING_API_KEY>",
        "GMA_API_KEY": "<GMA_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools reads data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `track`: Upsert one or many points on a metric and timestamp.
- `query` (name suggests: reads): Terse statistics plus an optional downsampled series within a token budget.
- `insight`: Plain-English trend, MAD anomalies and a naive linear forecast.
- `forget`: Delete a single timestamp, a time range, or an entire metric.
- `chart`: Render a 640x320 SVG, with a hosted share URL when synced.

## FAQ

### Is this a replacement for text memory tools like Mem0?

No. It is only for numbers over time, such as metrics, KPIs and sensor readings, and is meant to be used alongside text memory tools.

### What does the free plan include?

Three metrics, 10k points, 90-day reads, three share links, and a branded wordmark on shared charts.

### How much does the paid plan cost?

Founding is $49 for the first 12 months, then $9 per month, and it auto-renews until cancelled in the billing portal.

### Does the free tier delete older data?

No. Data is kept, but reads on the free plan only show the last 90 days until you upgrade.

### What do I need to run the local server?

Node.js 22.13 or newer. It is installed and started with npx graphmyanything-mcp.

### How do I add GraphMyAnything to Claude Code?

Run this command in your terminal: claude mcp add graphmyanything-mcp --env GRAPHMYANYTHING_API_KEY='<GRAPHMYANYTHING_API_KEY>' --env GMA_API_KEY='<GMA_API_KEY>' -- npx -y graphmyanything-mcp

### What are the best alternatives to GraphMyAnything?

The closest alternatives to GraphMyAnything are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Datatomcp](https://ai-powered.com/mcp/datatomcp-2): Datatomcp is a freemium MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/graphmyanything
