# pharos-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/LoganBresnahan/pharos-mcp  
**GitHub Stars:** 4  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pharos-mcp

## Description
Headless LSP-MCP bridge for AI agents. Hands rust-analyzer, gopls, tsserver, pyright, jdtls and 19 more language servers to any MCP-aware agent (Claude Code, Cursor, ChatGPT Desktop). Single binary, 23 languages.

## Tools
Capabilities this server exposes over MCP:

- **carried_over** — the server hasn't published since the last change (or
- **assumed_current** — the server published nothing since the file was
- **files_unchecked** — pharos hadn't finished checking the tree for files
- **not_reported** — on a language with several servers (Python: pyright and

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/LoganBresnahan/pharos-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://github.com/LoganBresnahan/pharos-mcp/releases/latest/download/install.sh | sh
```

2. Run:

```sh
pharos warm --all       # detects languages from workspace markers, pre-indexes each
```

## Documentation

## What pharos-mcp does

pharos-mcp gives MCP clients access to language servers that are normally used by IDEs. It supports 23 languages and includes integrations such as rust-analyzer for Rust, gopls for Go, TypeScript language tooling, pyright for Python, and jdtls for Java. The resulting tools let an agent inspect a codebase using language-aware information instead of relying only on file reads or grep.

The exposed MCP surface includes tools such as `hover` and `find_references`. These operations use the configured language server for the target file and workspace, so results can reflect types, declarations, and reference relationships maintained by the LSP.

## How it works

An MCP client starts the `pharos` command over standard input and output. A small native front end relays JSON-RPC messages to a shared pharos daemon over a Unix socket. The daemon starts on demand and can serve multiple sessions for the same pharos version.

For each request, pharos determines the language from the file URI, selects the configured LSP, and starts that server for the language and workspace when necessary. It performs the LSP initialization and readiness checks, forwards the corresponding LSP request, and converts the response into the MCP tool's return format.

Language servers remain in a daemon pool for reuse across sessions. Servers stop after an idle period and restart when needed. Multi-language workspaces can run several servers at once, while languages with multiple configured servers can route different methods to the appropriate implementation.

## Setup and configuration

Install a platform release with the Linux or macOS installer, or install the matching package globally with npm:

```bash
npm install -g pharos-mcp
```

Then register the executable as an MCP server:

```json
{
  "mcpServers": {
    "pharos": { "command": "pharos" }
  }
}
```

Install at least one supported LSP separately. Examples include `rust-analyzer` through rustup, `gopls` through Go, TypeScript language tooling through npm, and `pyright` through npm. The optional `pharos warm --all` command pre-indexes detected languages for a project; named languages can be supplied instead.

`PHAROS_MODE=direct` gives a session its own process rather than using the shared daemon. `PHAROS_LSP_IDLE_SECS` changes the language-server idle timeout. Linux releases require glibc 2.35 or newer, and macOS releases require the supported macOS version. Windows use is through WSL.

## Tools and capabilities

- Type-aware language-server queries through MCP.
- Symbol hover information through `hover`.
- Reference lookup through `find_references`.
- Shared language-server processes across MCP sessions.
- Concurrent support for multiple languages in one workspace.
- Warm-up commands for reducing first-request startup time.

## Limitations and notes

Language-server startup is not instantaneous. Cold starts vary by implementation and can take several seconds or longer for heavier servers such as rust-analyzer or jdtls. Warm-up can populate indexes before the first MCP request, but the relevant LSP must still be installed and available on the host.

The installer targets Linux and macOS. Linux requires a recent glibc environment; Alpine and other musl-based systems are not supported by the newer releases. On Windows, run pharos inside WSL. The npm installation selects a platform package for the host and keeps the native binary as the session executable.

_Full upstream README: https://allmcps.com/mcp/pharos-mcp/readme_

