Pharos MCP logo

Pharos MCP

Bridges MCP-aware agents to language servers for type-aware code navigation across 23 languages.

Install Pharos MCP

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

Setup steps from the project

pharos-mcp 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
    curl -fsSL https://github.com/LoganBresnahan/pharos-mcp/releases/latest/download/install.sh | sh
    
  2. 2. Run
    pharos warm --all       # detects languages from workspace markers, pre-indexes each
    

Overview

pharos-mcp connects MCP-aware agents to IDE language servers such as rust-analyzer, gopls, tsserver, pyright, and jdtls. It translates MCP tool requests into LSP operations, then returns structured results for tasks such as hovering over symbols and finding references. A native front end connects each session to an on-demand shared daemon, allowing language servers to be reused across sessions and workspaces. Reach for it when an agent needs type-aware code understanding rather than text search alone.

Use cases

  • Navigate typed codebases from an MCP agent
  • Find references to symbols across a workspace
  • Inspect symbol types with language-server hover data
  • Pre-index project languages before agent queries

Key features

  • LSP access over MCP
  • Support for 23 languages
  • Shared on-demand language-server daemon
  • Multi-language workspace handling
  • Hover and reference navigation tools
  • Optional project warm-up

Tools4

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

Self-reported~65 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.

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.

How Pharos MCP works

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:

Terminal
npm install -g pharos-mcp

Then register the executable as an MCP server:

config.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.

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 Pharos MCP

pharos-mcp is an MCP server that connects AI agents to IDE language servers such as rust-analyzer, gopls, tsserver, pyright, and jdtls. Its main tools include `hover` and `find_references`, giving MCP clients type-aware code navigation across supported workspaces instead of relying only on text search.

Install it with `npm install -g pharos-mcp` or use the Linux/macOS release installer. Then register `{ "command": "pharos" }` under an MCP client's server configuration and install at least one supported language server separately.

Yes, pharos-mcp works with Cursor through a server entry that uses the `pharos` command and no arguments. Add it through Cursor's per-server configuration UI, then restart the client.

Run `pharos warm --all` from the project directory, or name languages explicitly such as `pharos warm rust go`. This pre-indexes detected or selected language servers before the first MCP tool call.

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 PreviewPharos MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pharos-mcp?style=directory)](https://allmcps.com/mcp/pharos-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pharos-mcp"><img src="https://allmcps.com/api/badge/pharos-mcp?style=directory" alt="Pharos MCP on AllMCPs" /></a>