Corral logo

Corral

Query, search, organize, sync, and manage local clones across a Corral workspace without network calls for read-only operations.

Install Corral

Run the project’s own setup commands, in order.

Setup steps from the project

Corral installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    mise use -g github:sebastienrousseau/corralctl
    
  2. 2. Install
    brew install sebastienrousseau/tap/corralctl
    
  3. 3. Install
    yay -S corralctl-bin    # or: paru -S corralctl-bin
    
  4. 4. Install
    nix profile install github:sebastienrousseau/corralctl # install
    
  5. 5. Install
    go install github.com/sebastienrousseau/corralctl/cmd/corralctl@latest
    
  6. 6. Install
    git clone https://github.com/sebastienrousseau/corralctl.git
    

Overview

Corral MCP server exposes a locally organized collection of cloned repositories to AI coding agents. Read-only tools filter repositories, inspect metadata, search code and symbols across every clone, and summarize workspace state without network calls. Management tools can discover, clone, adopt, sync, or delete repositories with checks for remotes, branches, local changes, and operator approval. Reach for Corral when an agent needs workspace-wide repository context from a local mirror.

Use cases

  • Search every local clone for a symbol definition
  • Filter repositories by language, visibility, or sync state
  • Review stale clones before synchronizing them
  • Discover and adopt unmanaged repositories on disk
  • Summarize a large local repository workspace

Key features

  • Workspace-wide code and symbol search
  • Structured repository indexing and metadata lookup
  • Local repository discovery and adoption
  • Guarded clone, sync, and delete operations
  • Stale-repository identification
  • Read-only workspace explanations

Tools15

What Corral lets your agent do. Expand a tool for its parameters.

Self-reported~393 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 84d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Corral works

What Corral does

Corral exposes a local repository workspace through MCP. It works with clones arranged and tracked by corralctl, giving an agent structured access to repository identity, visibility, language, synchronization state, branches, and layout. The server is suited to developers who keep many Git repositories locally and need an agent to navigate them as a collection rather than opening each project independently.

Read-only queries operate on the local workspace and do not make network calls. Agents can list repositories, resolve an uncertain repository name, inspect one repository’s metadata, view aggregate counts, retrieve the complete workspace index, and inspect a repository’s overall shape. Code-oriented tools search for text or symbol declarations across every clone.

How it works

The MCP process reads Corral’s local index and repository state, including .corral-state.json data used for synchronization age. corral_find_repo can return multiple candidates when a fuzzy name is ambiguous instead of selecting one silently. corral_find_symbol and corral_search_code search across all available clones, while corral_repo_overview focuses on one repository.

The server also offers higher-level agent tasks. explain_workspace asks the agent to survey the workspace with read-only operations and summarize it. identify_stale_repos finds clones whose recorded sync time exceeds a threshold, using 30 days by default.

Mutation tools have additional safeguards. Syncing uses git pull --rebase --autostash and refuses clones without an origin, with an origin changed since the index was read, without commits, or not on the default branch named by origin/HEAD. Cloning uses a sandboxed target path. Adopting can relocate a local repository and optionally create a remote; a self-hosted forge URL must have been allowed through corralctl mcp --forge-url. Deletion requires destructive mutations to be enabled, refuses uncommitted or unpushed work, and requires human approval for each deletion.

Setup and configuration

Install corralctl through mise, Homebrew on macOS, Arch’s AUR, Nix, the Go toolchain, or a release package. The documented Go installation command is go install github.com/sebastienrousseau/corralctl/cmd/corralctl@latest. Git is required, and the platform setup also calls for Go; the quick-start workflow uses the GitHub CLI or a GITHUB_TOKEN for GitHub authentication.

Start the MCP service with corralctl mcp. Pass --forge-url when a self-hosted forge should be permitted for repository adoption. Destructive deletion is gated by --enable-destructive-mutations. The underlying workspace can be populated with corralctl clone <owner>, which organizes the resulting local clones for later MCP queries.

Tools and capabilities

  • Filter clones by visibility, language, name, or sync state.
  • Resolve repositories from fuzzy names and inspect metadata or repository structure.
  • Search text and symbol declarations across every local clone.
  • Produce workspace summaries, a complete structured index, or stale-repository reports.
  • Discover unmanaged repositories and adopt local repositories into the workspace.
  • Clone, pull, and delete repositories subject to safety checks.
  • Ask an agent to explain the workspace from read-only observations.

Limitations and notes

Corral’s read-only repository queries use local data and do not contact remote services. Operations that clone or synchronize repositories are different: cloning accesses a repository URL, and syncing performs a Git pull. Deletion is intentionally restricted and cannot proceed through the MCP interface unless its destructive-mutation guard is enabled and each deletion receives human approval.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Corral

Corral is an MCP server that connects AI agents to a local, Corral-organized mirror of cloned repositories. Its main tools list and inspect repositories, search code and symbols across every clone, summarize workspace state, discover unmanaged repositories, and perform guarded clone, adopt, sync, or delete operations.

Install `corralctl` through mise, Homebrew on macOS, Arch AUR, Nix, Go, or a release package, then run `corralctl mcp`. Git and Go are required for the documented setup, and GitHub workflows can use the GitHub CLI or `GITHUB_TOKEN`.

Read-only Corral queries do not make network calls because they inspect the local workspace. Clone and sync operations are exceptions: cloning accesses a repository URL, while synchronization runs `git pull --rebase --autostash` against a selected clone.

Deletion requires `--enable-destructive-mutations`, refuses repositories with uncommitted or unpushed changes, and asks a person to approve each deletion. These checks apply to the `corral_delete_repo` MCP tool.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCorral AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/corral?style=directory)](https://allmcps.com/mcp/corral)
HTML Embed
<a href="https://allmcps.com/mcp/corral"><img src="https://allmcps.com/api/badge/corral?style=directory" alt="Corral on AllMCPs" /></a>