Skip to content

Mcpg vs XERJ

Mcpg is an open-source MCP server for databases. XERJ is an open-source MCP server for knowledge and memory.

  • Mcpg is best for let an agent inspect a schema safely.
  • XERJ is best for search local code and docs from an agent.
What it is
Mcpg is an open-source MCP server for databases.
XERJ is an open-source MCP server for knowledge and memory.
Best for
Let an agent inspect a schema safely
Search local code and docs from an agent
Kind
MCP server
MCP server
Pricing
Open source
Open source
Platforms
CLI, self-hosted
CLI, Linux, macOS, self-hosted, API
Runs
Locally
Locally
GitHub stars
19.2K
Last commit
Nov 2026
License
Apache-2.0
Open source
Good for
Let an agent inspect a schema safely; Analyze a slow query with EXPLAIN; Tune indexes with pg_stat_statements data
Search local code and docs from an agent; Give an agent persistent memory notes; Look up real API definitions

What Mcpg does

  • AST-validated SQL

    Statements pass an allowlist before running.

  • Read-only default

    Writes, DDL and shell are opt-in.

  • DBA operations

    Health checks, index tuning, locks, vacuum and replicas.

  • Multi-tenancy

    Per-request SET ROLE and OIDC bearer auth.

  • Observability

    Prometheus metrics and redacted audit trail.

  • Extension support

    Works with pgvector, PostGIS, TimescaleDB and Apache AGE.

What XERJ does

  • Single binary

    Search, vectors, facts and memory in one Rust program.

  • Evidence-backed answers

    Answers come with the program and evidence used.

  • Runs locally

    Works offline on a CPU, on a laptop or server.

  • Elasticsearch-compatible API

    Exposes an API compatible with Elasticsearch.

  • Reference coding

    Index open-source repos so agents consult real definitions.

  • MCP integration

    Stdio MCP server connects to a running node.

Mcpg vs XERJ: questions

Is Mcpg or XERJ cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between Mcpg and XERJ?

Mcpg is an open-source MCP server for databases. XERJ is an open-source MCP server for knowledge and memory.