Dev & Engineering graphqlmcpdatabasesqlsecurity

GraphJin: One Governed Graph for AI Agents

A governed graph that gives AI agents secure access to databases, files, code, and APIs via GraphQL and MCP.

Source repo
dosco/deeporg
Stars
★ 3.3k
Last updated
today v3.28.4
FARS reviewed
Nov 08, 2026 +33 new
License
Apache-2.0
Primary language
Go

At a glance

How it runs
CLISelf-hosted serviceMCP server
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
GraphJin binary or DockerDatabase (PostgreSQL, MySQL, MongoDB, SQLite, etc.)Optional: model API key for agent modeShell / CLINetwork accessLocal filesystem
Typical use
Developers can instantly create a GraphQL API over existing databases without writing resolvers, using GraphJin as a standalone service or Go library.
Not a fit if
  • Teams that want a hosted cloud service instead of running their own server
  • Small projects that don't want database and config setup overhead
Website
deeporg.io ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v3.28.4 (2026-12-01)+2.4 ★/day over 7 days
Source review
73/100 · Some gaps

What does this agent do, and when should you use it?

GraphJin is a compiler and runtime that unifies a company's existing systems—databases, warehouses, files, source code, workflows, metadata, and security policy—into a single governed graph, exposed through GraphQL and MCP for AI agents. Agents discover before acting, validate queries, execute approved operations, and observe runtime status, with every answer checked against an execution ledger. It also serves as a high-performance GraphQL-to-database compiler, Go library, standalone API service, REST/OpenAPI gateway, and real-time subscription server. It supports a wide range of databases (PostgreSQL, MySQL, MongoDB, SQLite, Oracle, MSSQL, Snowflake, Redshift, BigQuery, Cassandra, etc.), file systems, and code indexing. A built-in server-side agent accepts an instruction and returns typed, evidence-backed answers.

GraphJin automatically reads database schemas, discovers relationships from foreign keys, exposes built-in gj_* system tables (e.g., gj_catalog, gj_code, gj_security, gj_runtime), and compiles GraphQL queries into optimized SQL. It guides AI agents via MCP tools like query_catalog, graphql_help, and validate_where_clause to discover before acting, and restricts operations through query allow-lists, read-only boundaries, and policy-aware tools. It also indexes source code with CodeSQL, managing syntax trees and database references in a SQLite database. The built-in server-side agent processes instructions via POST /api/v1/agent, returning structured answers. It supports real-time subscriptions, filesystem tables (local, S3, GCS), file uploads, and Apollo Federation v2.

  1. Developers can instantly create a GraphQL API over existing databases without writing resolvers, using GraphJin as a standalone service or Go library.
  2. AI coding assistants like Claude Code or Codex connect via MCP to safely query and mutate production databases with governance.
  3. Data analysts use natural language through the server-side agent to generate queries and receive evidence-backed results.
  4. Operations teams enforce query allow-lists and read-only modes to control AI write access to production systems.
  5. Development teams use CodeSQL to index source code and let agents answer questions like which handlers touch customer invoices.

How do you install or deploy this agent?

Install GraphJin via npm (npm install -g graphjin), Homebrew (brew install dosco/graphjin/graphjin), Scoop on Windows, .deb/.rpm packages for Linux, or Docker (docker pull dosco/graphjin). Then create a new app with graphjin serve new my-app and start it with graphjin serve --path ./my-app.

How do you use this agent?

After starting the service, add GraphJin to an AI client: for Claude Code, run graphjin mcp add claude http://localhost:8080; for Codex, run codex mcp add graphjin --url http://localhost:8080/api/v1/mcp. Then ask natural language questions like 'What tables are in the database?' and the client will use MCP tools to respond. Alternatively, call the GraphQL endpoint (POST /api/v1/graphql) directly or the server-side agent (POST /api/v1/agent).

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • data-flow disclosure

What are this agent's strengths and limitations?

Pros
  • Unified governance: one graph over multiple systems, so agents don't need raw credentials and risk is reduced.
  • High-performance query compilation: compiles GraphQL to a single optimized SQL, avoiding N+1 problems.
  • Rich security mechanisms: query allow-lists, read-only boundaries, row-level security, policy-aware MCP tools, and execution ledger for auditability.
  • Built-in server-side agent: one instruction returns evidence-backed answers, simplifying integration.
  • Wide database and data source support: includes major relational, NoSQL, warehouses, and file systems.
Limitations
  • May be overkill for small projects: configuration and learning curve suited for enterprise scenarios.
  • Some databases (Redshift, BigQuery) have experimental or incomplete support.
  • Subscription support depends on database dialect; some (Cassandra) only support polling.
  • Server-side agent requires a model API key and works best with code-generation-capable models.
  • Migration from legacy database mode to source mode requires configuration changes and a learning curve.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
GraphJin: One Governed Graph for AI Agents This agent 73 · Some gaps CLIFree + model costs ★ 3.3k today Go Codex · Claude Code
AI Agents — The Definitive Guide (Companion Code) 34 · Major gaps Library / SDKFree + model costs ★ 3.1k 4mo ago Jupyter Notebook —
OrchestKit AI Development Toolkit 70 · Some gaps Agent plugin / skillFree + model costs ★ 313 today TypeScript Claude Code
Skillshare Sync Manager 69 · Some gaps CLIFree ★ 3.5k today Go Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
73/ 100 5-point scale 3.7 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 33 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 19/29
Reliability 8/14
Adaptability 15/18
Convention 14/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust19 / 29 · 3.3/5

SECURITY.md describes source-mode JWT identity, role and row filters, default-deny OpenAPI writes, immutable read-only vetoes, and no automatic retries; the README says calls use the caller's permissions. Credentials are directed to environment variables, the CLI config is mode 0600, and displayed tokens are redacted. Scores stop at 2 because dev mode is explicitly unauthenticated and open, while agentic mode permits `none` behind a trusted boundary; safety depends on correct operator configuration. External effects and recovery have some constraints, but the packet does not establish recovery for all writes. Repository attribution and a security contact are present, but publisher identity is unverified.

Reliability8 / 14 · 2.9/5

The README claims execution-ledger checks for answers and lists many capabilities, but the supplied source does not include enough implementation to verify those guarantees; it also states that Federation `_entities` is not implemented. Score 1 reflects limited evidence connecting product claims to implementation. Multiple database, CLI, and Docker installation paths are documented, but a complete dependency security record is absent. Startup fail-closed behavior, meaningful errors, and external mutation failure classifications are described, though mostly as documentation claims.

Adaptability15 / 18 · 4.2/5

The packet covers database, repository-code, file, workflow, MCP, and server-side agent scenarios, with separate local, hosted, development, and training-environment guidance. SECURITY.md defines dev/prod/agentic boundaries, role authorization, and write gates, and the skills distinguish different workflow goals. Deductions reflect broad trigger descriptions that leave users to decide when the agent fits and how to configure many optional systems; operators must understand the different environment security postures.

Convention14 / 18 · 3.9/5

The README organizes installation, client connection, configuration, and features, with platform install steps, route descriptions, and concrete examples; LICENSE is Apache-2.0. SECURITY.md identifies supported versions, but only as `latest`; package metadata and automated release workflow provide some version signals. Deductions reflect no full changelog or explicit support commitment in the packet and a dense README. AGENTS.md is contributor guidance by its content, not product instructions. Repository attribution, issue routing, and a security contact exist, but unverified publisher identity does not establish enterprise maintenance responsibility.

Effectiveness12 / 13 · 4.6/5

A shared GraphQL/MCP surface, discovery catalog, permission-aware queries, and typed evidence-backed answers can reduce tool switching and blind query construction across systems. Examples show queries, uploads, watches, integrations, and evaluation use. Cost-benefit scores 2 because deployment, identity, data-source configuration, and optional model calls add operational work and potential expense, with no quantified benefit or cost in the packet.

Verifiability5 / 8 · 3.1/5

README usage claims are traceable to routes, configuration snippets, and examples; SECURITY.md gives more specific policy boundaries, and the license is present in full. Deductions reflect that many central security and agent-effectiveness claims remain product assertions in this packet, with too little main implementation source to corroborate them; CI files show build and test commands, but this review did not run them. Evaluation materials distinguish data fields and their sources, while some product prose blends capability claims with design intent without consistently marking inference.

Risks and how to mitigate them
  • Before production use, configure agentic mode, verified identity, least-privilege roles, and read-only boundaries as described in SECURITY.md. Dev mode is unauthenticated and open, so it should not be exposed to untrusted networks.
  • The agent can perform writes, and OpenAPI mutations can affect upstream systems; restrict sources and roles and establish recovery procedures before enabling them.
  • The packet contains many capability and security claims but too little main implementation code to verify them in this static review; this assessment does not represent execution or independent testing.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 5914e90e8ac7 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/graphjin.svg)](https://followagents.com/en/agents/graphjin)
<a href="https://followagents.com/en/agents/graphjin"><img src="https://followagents.com/badge/graphjin.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v3.28.4
    Release notes excerpt
    Changelog * d2979f9713e2ca8feaa778fddfa8bdee5e8d54fb chore: bump version to v3.28.4 [skip-release] [skip ci] * c436f63b6edff2019222da884ec60410abd8ac7e fix(demo): the saas-ops demo serves the account-health API its config lists
    View on GitHub ↗
  2. v3.28.3
    Release notes excerpt
    Changelog * 2a8827ecb7c06adcd9d32ab956e14e20e1217a72 chore: bump version to v3.28.3 [skip-release] [skip ci] * d4c5fd3e5593559a425fe580b565a7ff493a2717 chore: upgrade Ax Go dependency to 25.4.17
    View on GitHub ↗
  3. v3.28.2
    Release notes excerpt
    Changelog * 66574bbc9e8cc0762ff6afa1b2fda59047ecba49 chore: bump version to v3.28.2 [skip-release] [skip ci] * 8e26756f735db622ca1b8aa32f7fb2e815df6d18 chore: upgrade Ax Go dependency to 25.4.16
    View on GitHub ↗

FAQ

What advantages does GraphJin offer over direct database drivers?
GraphJin provides a governance layer, exposing data via GraphQL and MCP with built-in security policies (allow-lists, row-level security), automatic relationship discovery, and query optimization, ideal for multi-user and AI agent scenarios.
How do I ensure AI agents don't perform dangerous operations?
GraphJin supports query allow-lists, read-only boundaries, source-mode access control, and policy-aware MCP tools. You can set read-only mode or use source_patches for precise permissions.
Which databases does GraphJin support?
Full support for PostgreSQL, MySQL, MariaDB, MSSQL, Oracle, SQLite, MongoDB, and CockroachDB; limited or experimental support for Snowflake, Redshift, BigQuery, and Cassandra.
Is GraphJin open source? What's the license?
Yes, GraphJin is open source and licensed under the Apache License 2.0.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts