mcp-gopls

mcp-gopls is a Model Context Protocol (MCP) server that wraps Go’s gopls (LSP) to provide AI clients with Go code intelligence and tooling over MCP: navigation (definitions/references), editor features (hover/completion/format/rename/code actions), and Go commands (go test with coverage, go mod tidy, govulncheck, module graph), plus MCP resources/prompts and progress notifications for long-running operations.

Evaluated Mar 30, 2026 (21d ago)
Homepage ↗ Repo ↗ DevTools mcp go gopls lsp developer-tools ai-tools code-intelligence
⚙ Agent Friendliness
63
/ 100
Can an agent use this?
🔒 Security
24
/ 100
Is it safe for agents?
⚡ Reliability
38
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
88
Documentation
85
Error Messages
0
Auth Simplicity
95
Rate Limits
0

🔒 Security

TLS Enforcement
0
Auth Strength
10
Scope Granularity
10
Dep. Hygiene
50
Secret Handling
60

No network/TLS or auth model is described; it appears designed for local execution via stdio. Risk is primarily from executing Go tooling (subprocesses) and reading the mounted workspace; ensure the runtime environment is trusted and restrict filesystem access accordingly. Dependency hygiene is unknown from provided content; scores are conservative.

⚡ Reliability

Uptime/SLA
0
Version Stability
60
Breaking Changes
40
Error Recovery
50
AF Security Reliability

Best When

You want an AI IDE/agent to act like an LSP-powered Go coding assistant, with the ability to also run common Go tooling against a local workspace.

Avoid When

You cannot trust the client environment that will access your local filesystem/workspace, or you need fine-grained authorization/audit trails for each operation.

Use Cases

  • Go workspace navigation and code understanding via AI (definitions, references, workspace symbols)
  • AI-assisted Go diagnostics/triage using cached diagnostics + summarization prompts
  • AI-assisted code editing workflows (format, rename, code actions) through MCP
  • Automated Go test/coverage runs initiated from an agent, with streamed progress
  • Dependency management and security checks triggered from an agent (go mod tidy, go mod graph, govulncheck)

Not For

  • Secured, multi-tenant remote API access to private data (it appears intended to run locally/with a mounted workspace)
  • Public-facing web services requiring authentication/authorization for each request
  • Environments that cannot run Go/gopls tooling or that forbid spawning subprocesses for go/govulncheck commands

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: No auth mechanism described for the MCP server (operates as a local stdio MCP server).
OAuth: No Scopes: No

The README focuses on running the server locally (stdio/command invocation) and configuring workspace/tooling; no authentication/authorization scheme is documented for MCP requests.

Pricing

Free tier: No
Requires CC: No

Open-source; no pricing model described in the provided content.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Long-running tools emit notifications/progress; agents should handle concurrent runs using the namespaced progress token scheme mentioned in README to avoid 'unknown token' errors.
  • Some tools rely on cached diagnostics (check_diagnostics/run_go_test -> summarize_diagnostics prompt). Agents should call the prerequisite tool first.
  • Operations may require access to the provided workspace path; incorrect --workspace can lead to empty/failed results.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for mcp-gopls.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered