Skip to content
MCP server

GraphMyAnything

Metric memory for AI agents: track numbers once, then query, chart or forecast them

Runs locally

GraphMyAnything is a freemium MCP server for analytics and data. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API, macOS
Runs
Locally
Version
0.2.8
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "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

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GRAPHMYANYTHING_DB_PATHOptional SQLite path (default ~/.graphmyanything/metrics.db)
  • GRAPHMYANYTHING_CHARTS_DIROptional chart SVG output directory (default: charts/ beside DB, or ~/.graphmyanything/charts/)
  • GRAPHMYANYTHING_API_KEYOptional hosted API key (Bearer). Use after sync or from your account.
  • GMA_API_KEYAlias for GRAPHMYANYTHING_API_KEY

About GraphMyAnything

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.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

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.
queryName 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.

What it does

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

Pricing

Freemium, from $9 a month

Free plan with 3 metrics; Founding is $49 for 12 months, then $9/mo

Prices change. Check graphmyanything.com before you buy.

GraphMyAnything 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.

How AIPoweredBot checks servers