Language

Productivity and workflow

Mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.

Your AI app calls the Language MCP server, which does the work through tools like rename_symbol and edit_file and sends the result back to the chat.

About Language

Language is a community MCP server from isaacphi, filed in our directory under productivity and workflow. Mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.

The README for Language lists tools such as definition, references, diagnostics and hover, which your AI app can call once the server is connected.

At a glance

Publisher
isaacphi (community)
Runs
See the README for setup
Written in
Go
License
BSD-3-Clause
GitHub stars
1,627

Tools Language gives your AI app

  • definitionRetrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.
  • referencesLocates all usages and references of a symbol throughout the codebase.
  • diagnosticsProvides diagnostic information for a specific file, including warnings and errors.
  • hoverDisplay documentation, type hints, or other hover information for a given location.
  • rename_symbolRename a symbol across a project.
  • edit_fileAllows making multiple text edits to a file based on line numbers. Provides a more reliable and context-economical way to edit files compared to search and repl

Tool names as the Language README lists them. Your AI app shows the live list once Language is connected.

How to set up Language

  1. Follow the install steps in the Language README; it is written in Go, so have that toolchain ready.
  2. Check the Language README for keys or settings; the registry lists none that Language requires.
  3. Add Language to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Language tools to confirm the connection.
  5. Run one read-only task with Language first, such as a call to definition, before you allow anything that writes or sends.

Language compared with similar servers

  • Keeper.sh by ridafkih has fewer GitHub stars than Language (1.5k against 1.6k); both are community servers, and Keeper.sh runs as a remote server and Language runs on your own machine.
  • n8n (leonardsellem) by leonardsellem has more GitHub stars than Language (1.6k against 1.6k); both are community servers, and both run locally. The n8n (leonardsellem) README lists 12 tools to Language's 6.
  • WinShun by LingCore has fewer GitHub stars than Language (1.4k against 1.6k); both are community servers, and both run locally.

Before you connect Language

  • Give Language its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Language tool call until you trust what it does with them.
  • Treat text that Language fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Language on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Language

How marketing and sales teams put Language to work, by company size. Pick the size closest to yours and start Language on one use case.

Small business

  • A busy owner can use Language to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Language what slipped last week and which campaign tasks have no owner yet.
  • Language runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Language to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Language to see where work piles up across projects and move it before deadlines slip.
  • Start with definition and references, the tools Language lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise PMOs can use Language to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Language scoped access per workspace, so an agent helps one department without reading another's plans.
  • Language is a community server, so have security review the code and pin a version before Language touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Language README

From isaacphi/mcp-language-server on GitHub, shared under its BSD-3-Clause license. Images are left out; the original has them.

README.md

MCP Language Server

This is an MCP server that runs and exposes a language server to LLMs. Not a language server for MCP, whatever that would be.

Demo

mcp-language-server helps MCP enabled clients navigate codebases more easily by giving them access semantic tools like get definition, references, rename, and diagnostics.

Setup

  1. Install Go: Follow instructions at https://golang.org/doc/install
  2. Install or update this server: go install github.com/isaacphi/mcp-language-server@latest
  3. Install a language server: follow one of the guides below
  4. Configure your MCP client: follow one of the guides below
Go (gopls)

Install gopls: go install golang.org/x/tools/gopls@latest

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": ["--workspace", "/Users/you/dev/yourproject/", "--lsp", "gopls"],
      "env": {
        "PATH": "/opt/homebrew/bin:/Users/you/go/bin",
        "GOPATH": "/users/you/go",
        "GOCACHE": "/users/you/Library/Caches/go-build",
        "GOMODCACHE": "/Users/you/go/pkg/mod"
      }
    }
  }
}

Note: Not all clients will need these environment variables. For Claude Desktop you will need to update the environment variables above based on your machine and username:

  • PATH needs to contain the path to go and to gopls. Get this with echo $(which go):$(which gopls)
  • GOPATH, GOCACHE, and GOMODCACHE may be different on your machine. These are the defaults.
Rust (rust-analyzer)

Install rust-analyzer: rustup component add rust-analyzer

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "/Users/you/dev/yourproject/",
        "--lsp",
        "rust-analyzer"
      ]
    }
  }
}
Python (pyright)

Install pyright: npm install -g pyright

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "/Users/you/dev/yourproject/",
        "--lsp",
        "pyright-langserver",
        "--",
        "--stdio"
      ]
    }
  }
}
Typescript (typescript-language-server)

Install typescript-language-server: npm install -g typescript typescript-language-server

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "/Users/you/dev/yourproject/",
        "--lsp",
        "typescript-language-server",
        "--",
        "--stdio"
      ]
    }
  }
}
C/C++ (clangd)

Install clangd: Download prebuilt binaries from the official LLVM releases page or install via your system's package manager (e.g., apt install clangd, brew install clangd).

Configure your MCP client: This will be different but similar for each client. For Claude Desktop, add the following to ~/Library/Application\\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "language-server": {
      "command": "mcp-language-server",
      "args": [
        "--workspace",
        "/Users/you/dev/yourproject/",
        "--lsp",
        "/path/to/your/clangd_binary",
        "--",
        "--compile-commands-dir=/path/to/yourproject/build_or_compile_commands_dir"
      ]
    }
  }
}
<p><strong>Note</strong>:</p>
<ul>
  <li>Replace <code>/path/to/your/clangd_binary</code> with the actual path to your clangd executable.</li>
  <li><code>--compile-commands-dir</code> should point to the directory containing your <code>compile_commands.json</code> file (e.g., <code>./build</code>, <code>./cmake-build-debug</code>).</li>
  <li>Ensure <code>compile_commands.json</code> is generated for your project for clangd to work effectively.</li>
</ul>
Other

I have only tested this repo with the servers above but it should be compatible with many more. Note:

  • The language server must communicate over stdio.
  • Any aruments after -- are sent as arguments to the language server.
  • Any env variables are passed on to the language server.

Tools

  • definition: Retrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.
  • references: Locates all usages and references of a symbol throughout the codebase.
  • diagnostics: Provides diagnostic information for a specific file, including warnings and errors.
  • hover: Display documentation, type hints, or other hover information for a given location.
  • rename_symbol: Rename a symbol across a project.
  • edit_file: Allows making multiple text edits to a file based on line numbers. Provides a more reliable and context-economical way to edit files compared to search and replace based edit tools.

About

This codebase makes use of edited code from gopls to handle LSP communication. See ATTRIBUTION for details. Everything here is covered by a permissive BSD style license.

mcp-go is used for MCP communication. Thank you for your service.

This is beta software. Please let me know by creating an issue if you run into any problems or have suggestions of any kind.

Contributing

Please keep PRs small and open Issues first for anything substantial. AI slop O.K. as long as it is tested, passes checks, and doesn't smell too bad.

Setup

Clone the repo:

git clone https://github.com/isaacphi/mcp-language-server.git
cd mcp-language-server

A justfile is included for convenience:

just -l
Available recipes:
    build    # Build
    check    # Run code audit checks
    fmt      # Format code
    generate # Generate LSP types and methods
    help     # Help
    install  # Install locally
    snapshot # Update snapshot tests
    test     # Run tests

Configure your Claude Desktop (or similar) to use the local binary:

{
  "mcpServers": {
    "language-server": {
      "command": "/full/path/to/your/clone/mcp-language-server/mcp-language-server",
      "args": [
        "--workspace",
        "/path/to/workspace",
        "--lsp",
        "language-server-executable"
      ],
      "env": {
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

Rebuild after making changes.

Logging

Setting the LOG_LEVEL environment variable to DEBUG enables verbose logging to stderr for all components including messages to and from the language server and the language server's logs.

LSP interaction
  • internal/lsp/methods.go contains generated code to make calls to the connected language server.
  • internal/protocol/tsprotocol.go contains generated code for LSP types. I borrowed this from gopls's source code. Thank you for your service.
  • LSP allows language servers to return different types for the same methods. Go doesn't like this so there are some ugly workarounds in internal/protocol/interfaces.go.
Local Development and Snapshot Tests

There is a snapshot test suite that makes it a lot easier to try out changes to tools. These run actual language servers on mock workspaces and capture output and logs.

You will need the language servers installed locally to run them. There are tests for go, rust, python, and typescript.

integrationtests/
├── tests/        # Tests are in this folder
├── snapshots/    # Snapshots of tool outputs
├── test-output/  # Gitignored folder showing the final state of each workspace and logs after each test run
└── workspaces/   # Mock workspaces that the tools run on

To update snapshots, run UPDATE_SNAPSHOTS=true go test ./integrationtests/...

Questions about Language

What is the Language MCP server?

Mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics. Language is maintained by isaacphi on GitHub at isaacphi/mcp-language-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Language MCP server?

Language doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (isaacphi/mcp-language-server). Like most servers, Language ends with a command or URL you paste into your AI app's MCP config.

Does Language need an API key?

The registry lists no required keys for Language. Check the Language README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Language an official MCP server?

No. Language is a community server maintained by isaacphi. Community servers can be excellent; read the code and the open issues before you give Language access to company data.

What license is Language under?

Language is released under the BSD-3-Clause license, according to its GitHub repository. The license covers the code of Language; the service it connects to has its own terms.