npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-tools-mcp-server

v1.0.0

Published

MCP server providing OpenCode tools - file operations, bash, web search, code search, and more

Readme

opencode-tools-mcp-server

A Model Context Protocol (MCP) server providing comprehensive file operations, bash execution, web search, code search, and more.

Installation

Using npx (recommended)

{
  "mcpServers": {
    "opencode-tools": {
      "command": "npx",
      "args": ["-y", "opencode-tools-mcp-server"]
    }
  }
}

Global installation

npm install -g opencode-tools-mcp-server

Then configure:

{
  "mcpServers": {
    "opencode-tools": {
      "command": "opencode-tools"
    }
  }
}

Available Tools

File Operations

| Tool | Description | |------|-------------| | read | Read files or directories with pagination support | | write | Write content to files | | edit | Edit files with smart string replacement (9 replacer strategies) | | multiedit | Perform multiple edits in sequence | | glob | Find files using glob patterns | | grep | Search file contents using regex | | ls | List directory contents in tree format |

Execution

| Tool | Description | |------|-------------| | bash | Execute shell commands with timeout support |

Web Operations

| Tool | Description | |------|-------------| | webfetch | Fetch web content (HTML, Markdown, images) | | websearch | Search the web using Exa API | | codesearch | Search for code examples using Exa API |

Task Management

| Tool | Description | |------|-------------| | todowrite | Write/update todo list | | todoread | Read current todo list | | task | Create sub-agent tasks | | batch | Execute multiple tool calls in parallel |

Other Tools

| Tool | Description | |------|-------------| | apply_patch | Apply patch files | | question | Ask user questions | | lsp | LSP operations (definition, references, hover, etc.) | | set_working_directory | Set the working directory for file operations |

Features

Smart Edit Replacement

The edit tool includes 9 intelligent replacement strategies:

  1. SimpleReplacer - Direct string matching
  2. LineTrimmedReplacer - Match with trimmed lines
  3. BlockAnchorReplacer - Match using first/last line anchors with Levenshtein similarity
  4. WhitespaceNormalizedReplacer - Normalize whitespace for matching
  5. IndentationFlexibleReplacer - Ignore indentation differences
  6. EscapeNormalizedReplacer - Handle escape sequences
  7. TrimmedBoundaryReplacer - Match trimmed boundaries
  8. ContextAwareReplacer - Use context for matching
  9. MultiOccurrenceReplacer - Handle multiple occurrences

File Reading Features

  • Automatic binary file detection
  • Image and PDF support (returns base64)
  • Line truncation for long lines
  • Byte limit enforcement
  • File suggestions when file not found

Web Operations

  • HTML to Markdown conversion
  • Image fetching support
  • Configurable timeouts
  • Accept header negotiation

Configuration Example

For Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "opencode": {
      "command": "npx",
      "args": ["-y", "opencode-mcp-server"]
    }
  }
}

For other MCP clients, adjust the configuration accordingly.

Requirements

  • Node.js >= 18.0.0

License

MIT