Model Context Protocol (MCP)

Enhanced capabilities through MCP integration

What is MCP?

The Model Context Protocol (MCP) is a standardized protocol that allows AI applications to securely access external data sources and tools. MCP enables AI models to interact with external services, databases, APIs, and more.

Oh My OpenCode includes built-in MCP support with two powerful MCPs enabled by default:

  • Context7 - Access to up-to-date documentation
  • grep.app - Ultra-fast code search across GitHub

Context7 MCP

Enabled by Default

Context7 fetches up-to-date official documentation for libraries and frameworks. This ensures you always have access to the latest documentation when working with external libraries.

Features

  • Up-to-Date Documentation - Always get the latest official documentation
  • Library Support - Supports documentation for popular libraries and frameworks
  • Automatic Fetching - Automatically fetches relevant documentation based on your code
  • Context Integration - Seamlessly integrates documentation into your workflow

Use Cases

  • Looking up API documentation while coding
  • Understanding library usage patterns
  • Finding correct syntax and parameters
  • Discovering best practices for libraries

Configuration

Context7 is enabled by default. To disable it:

{
  "disabled_mcps": ["context7"]
}

Context7 works particularly well with the Librarian agent for comprehensive documentation management.

grep.app MCP

Enabled by Default

grep.app provides ultra-fast code search across millions of public GitHub repositories. Find code examples, patterns, and solutions instantly.

Features

  • Ultra-Fast Search - Search across millions of repositories in seconds
  • Pattern Discovery - Find how others have solved similar problems
  • Code Examples - Discover real-world code examples
  • Best Practices - Learn from production code

Use Cases

  • Finding code examples for specific patterns
  • Discovering how popular libraries are used
  • Learning from production codebases
  • Finding solutions to common problems
  • Understanding implementation patterns

Configuration

grep.app is enabled by default. To disable it:

{
  "disabled_mcps": ["grep_app"]
}

Visit grep.app to learn more about the service.

MCP Configuration

Configure MCPs in your oh-my-opencode.json file:

Disable MCPs

{
  "disabled_mcps": ["context7", "grep_app"]
}

Configuration Locations

  • ~/.config/opencode/oh-my-opencode.json - User-wide
  • .opencode/oh-my-opencode.json - Project-specific
Note: Both Context7 and grep.app MCP are enabled by default. You can disable them individually or both if needed.

Learn More About Configuration →

MCP Best Practices

  • Keep MCPs enabled - Both default MCPs provide valuable functionality and are optimized for performance.
  • Use with appropriate agents - Context7 works well with Librarian, grep.app works well with Explore agent.
  • Project-specific configuration - Disable MCPs in specific projects if they're not needed.
  • Monitor performance - If you notice performance issues, consider disabling MCPs that aren't being used.

External Resources

Learn more about MCP and related services: