Codebase MCP Server

Codebase Model Context Protocol Server

Local serverstdioTypeScript

What is the Codebase MCP Server?

Codebase Model Context Protocol Server

The short version

What it needs from you

  • Node.js v18 or later - Codebase to communicate with LLM

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get-project-basicsRetrieves essential project information including package.json details, directory structure.
search-config-filesSearches for configuration files within the root directory and returns their paths.
get-dependency-treeTraverses the dependency tree based on the given file path and root directory, and returns the traversal results.
list-directoryLists the contents of a specified directory, distinguishing between files and directories.
read-file-with-metadataReads the content of a specified file and retrieves its metadata.

How to install the Codebase MCP Server

{
  "mcpServers": {
    "Codebase": {
      "command": "npx",
      "args": [
        "codebase-mcp-server@latest",
        "/path/to/your/codebase"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js v18 or later - Codebase to communicate with LLM

Example prompts to try

  • “Use Codebase to get-project-basics.”
  • “Use Codebase to search-config-files.”
  • “Use Codebase to get-dependency-tree.”

Frequently asked questions

Codebase Model Context Protocol Server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.