MCP Directory

CLI MCP Server vs codebase-memory-mcp

A side-by-side comparison of two Developer Tools servers — tools, transport, auth, maintenance, and copy-paste config for each.

 CLI MCP Server

Securely run whitelisted CLI commands within an allowed directory via MCP.

Unverified
stdio (local)
No auth
Stale
Python
codebase-memory-mcp

Code intelligence engine that indexes repos into a persistent knowledge graph for AI coding agents.

Unverified
stdio (local)
No auth
C
CategoryDeveloper ToolsDeveloper Tools
LanguagePythonC
Transportstdio (local)stdio (local)
AuthNoneNone
GitHub stars17116k
Last commit1 year ago1 month ago
Verified
Actively maintained
Installnpx @smithery/cli install cli-mcp-server --client claudecurl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
RepoOpen Open

Verdict

Pick CLI MCP Server if you prefer its approach (securely run whitelisted cli commands within an allowed directory via mcp).

Pick codebase-memory-mcp if you prefer the more popular, battle-tested option, and you need the broadest set of tools.

Add CLI MCP Server

Install / run
npx @smithery/cli install cli-mcp-server --client claude

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "cli-mcp-server": {
      "command": "uvx",
      "args": [
        "cli-mcp-server"
      ],
      "env": {
        "ALLOWED_DIR": "</your/desired/dir>",
        "ALLOWED_COMMANDS": "ls,cat,pwd,echo",
        "ALLOWED_FLAGS": "-l,-a,--help,--version",
        "MAX_COMMAND_LENGTH": "1024",
        "COMMAND_TIMEOUT": "30",
        "ALLOW_SHELL_OPERATORS": "false"
      }
    }
  }
}

Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.

Add codebase-memory-mcp

Install / run
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "/path/to/codebase-memory-mcp",
      "args": []
    }
  }
}

FAQ

CLI MCP Server or codebase-memory-mcp — which is better?

Pick CLI MCP Server if you prefer its approach (securely run whitelisted cli commands within an allowed directory via mcp). Pick codebase-memory-mcp if you prefer the more popular, battle-tested option, and you need the broadest set of tools.

Can I use both CLI MCP Server and codebase-memory-mcp?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do CLI MCP Server and codebase-memory-mcp work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.