# graphite [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/julioczn/graphite  
**GitHub Stars:** 8  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/graphite

## Description
Free, open-source database client (GUI) for macOS, Windows and Linux: 24 databases — PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Redis, DynamoDB, ClickHouse and more — with an AI assistant and an MCP server that ask before they write.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What graphite MCP server does

graphite exposes the database connections saved in the Graphite desktop application to external MCP-compatible agents. It gives agents a consistent way to discover available connections, inspect database structure, and work with data without requiring each agent to implement separate database drivers.

The available database coverage comes from Graphite, which supports relational systems such as PostgreSQL, MySQL, SQLite, SQL Server, Oracle, ClickHouse, DuckDB, Snowflake, BigQuery, and others, as well as MongoDB, Redis or Valkey, Cassandra or ScyllaDB, DynamoDB, and SurrealDB. The MCP interface operates on connections configured in Graphite rather than defining a separate connection configuration format.

## How it works

Enable the external-agent server from Graphite’s AI and agents settings. Graphite displays configuration snippets that can be pasted into supported MCP clients. The service listens only on `127.0.0.1` and requires a token; it also rejects browser-style requests with an `Origin` header and requests using other `Host` headers.

Agents use their own database sessions and do not share an open transaction from the Graphite user interface. Supported operations include listing connections, enumerating schemas and tables, describing tables, obtaining a schema summary with foreign-key information, and executing SQL.

Read-oriented statements, including `SELECT`, `WITH`, `EXPLAIN`, and `SHOW`, run in a database-enforced read-only mode with a 30-second timeout and limited initial result fetching. Graphite checks for writes disguised as reads, such as data-changing CTEs or certain function calls.

## Setup and configuration

1. Install Graphite from its latest release for macOS, Windows, or Linux.
2. Add and test the database connections that agents should use in Graphite.
3. Open **AI and agents → External agents** and enable the MCP server.
4. Copy the generated client configuration and provide the displayed token to the MCP client.

The token grants access to every saved connection, including read access, so it should be handled like a database credential. Regenerate it if it is exposed. The service is local to the machine running Graphite; remote agents are not described as a supported deployment model.

## Tools and capabilities

The MCP interface supports these database operations:

- List saved connections available through Graphite.
- Browse schemas and tables.
- Describe table structures.
- Summarize schemas and foreign-key relationships.
- Run SQL against a selected connection.

Statements that can modify data or schema open an approval dialog showing the requesting agent, selected connection, and statements to be executed. Approved scripts run in a transaction. Rejected scripts are not executed, and the agent receives the rejection result. Read-only connections continue to block writes.

## Limitations and notes

The MCP server depends on Graphite’s desktop application and its saved connections. Database-specific behavior still applies: some supported systems are read-only in Graphite, while non-relational databases require approval for every command because they do not provide a dependable read-only mode for the application to enforce.

The MCP token is broad: anyone who obtains it can read every saved connection. Treat it as a secret rather than as a per-database permission. Agent activity is visible in Graphite under **AI → Activity**.

Graphite’s MCP access is intended for local clients such as Claude Code, Cursor, VS Code, and Claude Desktop through `mcp-remote`. The server’s local binding and host/origin checks are part of its access boundary.

_Full upstream README: https://allmcps.com/mcp/graphite/readme_

