Codebase Memory vs Mcpg
Codebase Memory is an open-source MCP server for knowledge and memory. Mcpg is an open-source MCP server for databases.
- Codebase Memory is best for find callers of a function.
- Mcpg is best for let an agent inspect a schema safely.
- What it is
- Codebase Memory is an open-source MCP server for knowledge and memory.Mcpg is an open-source MCP server for databases.
- Best for
- Find callers of a functionLet an agent inspect a schema safely
- Kind
- MCP serverMCP server
- Pricing
- Open sourceOpen source
- Platforms
- CLI, macOS, Linux, Windows, self-hostedCLI, self-hosted
- Runs
- LocallyLocally
- GitHub stars
- 48.7K
- Last commit
- Nov 2026
- License
- MIT
- Open source
- Good for
- Find callers of a function; Assess the impact of a diff; Link documentation to codeLet an agent inspect a schema safely; Analyze a slow query with EXPLAIN; Tune indexes with pg_stat_statements data
What Codebase Memory does
Code knowledge graph
Persistent graph of symbols, calls and dependencies.
Multiple search modes
Structural, full-text and local semantic search.
Documentation links
Indexes Markdown, reStructuredText, AsciiDoc and ADRs.
Infrastructure tracing
Connects Docker, Kubernetes, Terraform and CI to source.
Change impact
Maps a diff to affected symbols and related tests.
Native CLI
Query the same graph from the command line.
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.
Codebase Memory vs Mcpg: questions
Is Codebase Memory or Mcpg cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Codebase Memory and Mcpg?
Codebase Memory is an open-source MCP server for knowledge and memory. Mcpg is an open-source MCP server for databases.
