Skip to content

Codebase Memory vs s-gw

Codebase Memory is an open-source MCP server for knowledge and memory. s-gw is a free MCP server for security.

  • Codebase Memory is best for find callers of a function.
  • s-gw is best for let an agent run an aws read-only command with your approval.
What it is
Codebase Memory is an open-source MCP server for knowledge and memory.
s-gw is a free MCP server for security.
Best for
Find callers of a function
Let an agent run an AWS read-only command with your approval
Kind
MCP server
MCP server
Pricing
Open source
Free
Platforms
CLI, macOS, Linux, Windows, self-hosted
CLI, macOS, Linux, Windows
Runs
Locally
Locally
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 code
Let an agent run an AWS read-only command with your approval; Stop API tokens from leaking into model context; Audit which agent used which credential and when

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 s-gw does

  • Typed credential handles

    Agents reference named handles and never receive plaintext values.

  • Local approvals

    Review agent, command, target and working directory before access.

  • Constrained execution

    Injects the credential only into the approved child process.

  • Output sanitization

    Scans output and replaces detected secrets with handles.

  • Audit trail

    Logs request, approval, execution and destination without raw secrets.

  • Agent profiles

    Setup for Codex, Claude Code, Cursor, OpenCode, Gemini CLI, Copilot and VS Code.

Codebase Memory vs s-gw: questions

Is Codebase Memory or s-gw cheaper?

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

What is the difference between Codebase Memory and s-gw?

Codebase Memory is an open-source MCP server for knowledge and memory. s-gw is a free MCP server for security.