Skip to content

MCP, LSP & Plugin Reference

Complete reference of all AI infrastructure configured by OpenCode Initializer.

MCP Servers (22 local + 2 remote)

MCP (Model Context Protocol) servers extend OpenCode with external tools and data sources.

Local Servers

Server Package Category Description
filesystem @modelcontextprotocol/server-filesystem Core File system operations — read, write, list, search
git mcp-server-git Core Git operations — log, diff, branch, commit
github @modelcontextprotocol/server-github Platform GitHub API — repos, issues, PRs, search
gitlab mcp-server-gitlab Platform GitLab API mirror of GitHub server
memory @modelcontextprotocol/server-memory AI Knowledge graph with persistent memory
sequential-thinking @modelcontextprotocol/server-sequential-thinking AI Chain-of-thought reasoning breakdown
memorylayer @scitrera/memorylayer-mcp-server AI Advanced memory with session persistence
fetch mcp-server-fetch Network HTTP requests, web content retrieval
time mcp-server-time Utility Timezone conversion, current time
sqlite mcp-server-sqlite Data SQLite database query and management
postgres @modelcontextprotocol/server-postgres Data PostgreSQL database access (requires token)
redis @modelcontextprotocol/server-redis Data Redis key-value store operations
playwright @playwright/mcp Browser Full browser automation (Chromium)
agent-browser agent-browser-mcp-server Browser Lightweight browser control for web tasks
chrome-devtools chrome-devtools-mcp Browser Chrome DevTools Protocol access
brave-search brave-search-mcp Search Web search via Brave Search API
context7 context7-mcp Search Code documentation search
context7-official @upstash/context7-mcp Search Official Context7 library documentation
notion @notionhq/notion-mcp-server Platform Notion workspace integration
agentic-tools @pimzino/agentic-tools-mcp Agent Task management, project planning
codegraph codegraph-mcp Analysis Code dependency and call graph analysis
loopsense @loopsense/mcp Analysis Code quality and best practices

Remote Servers

Server Package Category Description
sentry @sentry/mcp Monitoring Error tracking and performance monitoring
grep grep-mcp Utility Content search across codebase

Enabling/Disabling MCP Servers

MCP servers are defined in opencode.json under mcp. Each server can be:

{
  "mcp": {
    "filesystem": {
      "type": "local",
      "command": ["/home/user/.bun/bin/mcp-server-filesystem", "/path/to/project"],
      "enabled": true
    }
  }
}

Platform-specific servers (GitHub, GitLab, Postgres, Google Maps) are conditionally enabled — only if the corresponding API key is provided via --github-token, --gitlab-token, etc.

Cold Start Performance

Most MCP servers use absolute Bun binary paths (~/.bun/bin/mcp-server-*) instead of npx -y. This means:

  • 0.5s cold start vs 5-15s with npx
  • No network required after install
  • Survives npm cache clears

LSP Servers (12)

LSP (Language Server Protocol) servers provide intelligent code analysis for OpenCode.

Server Language Features
gopls Go Autocomplete, jump-to-def, refactor, diagnostics
rust-analyzer Rust Full IDE experience, borrow checker integration
typescript TypeScript/JavaScript Type checking, autocomplete, quick fixes
pyright Python Static type checking, autocomplete, diagnostics
yaml YAML Schema validation, autocomplete, formatting
marksman Markdown Link validation, TOC generation, autocomplete
taplo TOML Formatting, validation, autocomplete
bash Bash/Shell Shell script analysis, diagnostics
dockerfile Dockerfile Syntax highlighting, validation, autocomplete
css CSS Validation, autocomplete, formatting
html HTML Validation, autocomplete, formatting
json JSON Validation, autocomplete, formatting

Architecture-dependent LSPs

Server amd64 arm64
gopls ✅ ✅
rust-analyzer ✅ ✅

The installer auto-detects CPU architecture and downloads the correct binary.

Plugins (21)

OpenCode plugins extend the assistant's capabilities.

Plugin Description
codegraph Code dependency and call graph analysis in-editor
dcp Damage Control Protocol — prevent harmful actions, context compression
auto-fallback Automatic provider fallback on errors
goal-mode Structured goal-driven development with contracts
swarm Multi-agent coordination and review workflow
vibeguard Quality gate before completion
devcontainers Dev container workspace management
worktree Git worktree isolation for feature branches
scheduler Background job scheduling via systemd/launchd
background-agents Async background agent delegation
goal-plugin Goal-oriented task management and tracking
conductor Development track orchestration and planning
zellij-namer Automatic Zellij session naming
morph-plugin Context-aware model morphing and adaptation
supermemory Persistent cross-session memory for agents
websearch-cited Grounded web search with inline citations
firecrawl Web page crawling and content extraction
plugin-otel OpenTelemetry observability and tracing
token-tracker Token usage and cost tracking per session
orchestrator Multi-step task orchestration
daytona Daytona workspace integration for sandboxed dev envs

Configuration Reference

MCP Server Command Formats

// Local server (bun binary — fast cold start)
{
  "type": "local",
  "command": ["/home/user/.bun/bin/mcp-server-filesystem", "/project"]
}

// Local server (npx fallback — when bun binary missing)
{
  "type": "local",
  "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/project"]
}

// Remote server (HTTP)
{
  "type": "remote",
  "url": "https://mcp.example.com/sse"
}

Plugin Format

{
  "plugin": [
    "opencode-codegraph",
    ["opencode-dcp", { "compress": { "enabled": true } }],
    "opencode-auto-fallback"
  ]
}

Adding Custom MCP/LSP/Plugin

  1. MCP Server: Add to opencode.json -> mcp
  2. LSP Server: Add to opencode.json -> lsp
  3. Plugin: Add to opencode.json -> plugin array

For system-wide installation, modify src/lib/12-mcp-lsp.sh and run bash setup.sh --reinit.


See also: - Architecture — C4 diagrams and module layout - Reference — CLI reference and opencode.json schema - User Guide — daily usage of MCP and LSP - Advanced Guide — custom MCP/LSP configuration