M

mcp-goplsmcp-gopls MCP server

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

mcp-gopls is a Model Context Protocol (MCP) server that enables AI assistants to leverage Go's Language Server Protocol (LSP) capabilities, provided by gopls. It allows AI tools like Claude, Cursor, and Copilot to perform various operations on Go code, such as navigation, diagnostics, testing, and code analysis. The server acts as an intermediary, translating MCP requests into LSP commands that gopls can understand, and then returning the results to the AI assistants. This enables features like go-to-definition, references, hover information, completion, code formatting, and testing. The project is actively developed, supports Go 1.25.x, and is tested with the latest gopls. It offers configurable runtime settings, structured logging, and extended LSP functionality. While the built-in gopls MCP server has some capabilities, mcp-gopls provides a more comprehensive set of features for AI assistants working with Go code. mcp-gopls is particularly useful for AI assistant developers who want to integrate Go language support into their products. By using mcp-gopls, these developers can provide a richer set of features to their users, enhancing the overall development experience. The architecture of mcp-gopls relies on the mark3labs/mcp-go library for MCP implementation and communicates with gopls via LSP. This design allows for seamless interaction between AI assistants and Go development tools. One of the key benefits of mcp-gopls is its ability to expose a wider range of LSP capabilities to AI assistants compared to the built-in MCP server in gopls. This includes advanced code analysis and testing features. However, as with any actively developed project, some features might still be evolving, and users should be prepared for potential updates and changes in the roadmap. The project is open-source and available on GitHub, encouraging community involvement and contributions. mcp-gopls also offers progress streaming for long-running commands, allowing clients to display status updates to users. The comparison with the built-in gopls MCP server highlights the additional features provided by mcp-gopls, making it a valuable tool for enhancing AI-assisted Go development.

Key features

  • Go-to-definition
  • Find references
  • Diagnostics
  • Hover information
  • Completion
  • Formatting

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

AI-assisted Go Development

Enabling AI tools like Claude, Cursor, and Copilot to perform complex operations on Go code, enhancing the development experience.

Go Code Analysis

Providing detailed code analysis, diagnostics, and testing capabilities to AI assistants, facilitating deeper code understanding and optimization.

Pros & Cons

Pros

  • Provides a comprehensive set of LSP features to AI assistants
  • Supports advanced Go development operations
  • Actively developed with community involvement
  • Offers configurable runtime settings and structured logging

Cons

  • Dependent on gopls and LSP, which may have their own limitations
  • As an open-source project, some features might still be evolving

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

What are the limitations of mcp-gopls?

It is dependent on gopls and LSP, which may have their own limitations, and as an open-source project, some features might still be evolving.

Asked by Larisa Ionescu · Aug 10, 2025

Is mcp-gopls actively developed?

Yes, the project is actively developed and supports Go 1.25.x, with testing done using the latest gopls.

Asked by Mia Andersen · Jul 11, 2025

What features does it support?

It supports features like go-to-definition, references, hover information, completion, code formatting, and testing.

Asked by Fernando Rojas · Jul 7, 2025

What is mcp-gopls?

mcp-gopls is a Model Context Protocol (MCP) server that enables AI assistants to leverage Go's Language Server Protocol (LSP) capabilities.

Asked by Greta Nowak · Jun 7, 2025

Ask a question

MCP Servers alternatives