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

webmcp-client

v2.0.4

Published

Meta MCP client for WebMCP-compliant servers — connect Claude Desktop to any number of WebMCP sites, no restart required

Readme

webmcp-client v2.0

Meta MCP Client for WebMCP-compliant servers. Configure once in any MCP client, then add/remove any number of WebMCP sites dynamically. No restart required.

Legacy alias: webmcp-bridge still works for backwards compatibility.

Installation

npm install -g github:chgold/webmcp-client

This installs the webmcp-client command globally from GitHub.

Claude Desktop Configuration (set once, never change)

After installing globally:

{
  "mcpServers": {
    "webmcp": {
      "command": "webmcp-client"
    }
  }
}

Or if you cloned the repo manually, point to the index.js directly:

{
  "mcpServers": {
    "webmcp": {
      "command": "node",
      "args": ["/path/to/webmcp-client/index.js"]
    }
  }
}

Behind a Corporate SSL Proxy?

If you're behind an SSL proxy, the bridge may fail with unable to get local issuer certificate. Fix it by setting NODE_TLS_REJECT_UNAUTHORIZED:

{
  "mcpServers": {
    "webmcp": {
      "command": "webmcp-client",
      "env": {
        "NODE_TLS_REJECT_UNAUTHORIZED": "0"
      }
    }
  }
}

Usage

Meta Client Mode (default)

Start with no arguments — the client manages sites via ~/.webmcp-client/sites.json:

node index.js

Three meta-tools are always available in Claude Desktop:

| Tool | Description | |------|-------------| | webmcp_addSite | Add a WebMCP site — fetches manifest, loads tools, notifies Claude | | webmcp_listSites | List configured sites with tool counts | | webmcp_removeSite | Remove a site and its tools |

Once a site is added, its tools appear as {site-name}/{tool-name}, e.g. drupal-prod/drupal.searchNodes.

Pre-loading a site via CLI

node index.js --site name=drupal-prod,manifest=https://site.com/api/ai-connect/v1/manifest,token=Bearer_dpc_xxx

Saves the site to ~/.webmcp-client/sites.json and loads it immediately.

Config file

Config is stored in ~/.webmcp-client/sites.json (new installs) or ~/.webmcp-bridge/sites.json (existing installs — automatically detected). The file is created automatically on first run:

{
  "sites": {
    "drupal-prod": {
      "manifest": "https://your-site.com/api/ai-connect/v1/manifest",
      "token": "Bearer dpc_your_token_here"
    }
  }
}

Legacy Single-Site Mode

For backward compatibility, the original --manifest flag still works:

node index.js \
  --manifest https://your-site.com/api/ai-connect/v1/manifest \
  --token "Bearer dpc_your_token_here" \
  [--name "My Server"]

In this mode, tools are exposed without a site prefix (as in v1.0).

WebMCP Compatibility

Works with any WebMCP-compliant server:

  • Drupal AI Connect module
  • WordPress (WebMCP plugin)
  • XenForo
  • Any custom WebMCP implementation

How It Works

  1. On startup, loads all sites from ~/.webmcp-client/sites.json
  2. Fetches each manifest and populates the tool registry (unreachable sites are skipped gracefully)
  3. Exposes 3 meta-tools + all site tools via MCP stdio
  4. When webmcp_addSite or webmcp_removeSite is called:
    • Updates the config file
    • Reloads the tool registry
    • Sends notifications/tools/list_changed so Claude Desktop refreshes immediately

Getting a Token (Drupal)

drush --uri=http://your-site.com php:eval "
\$t = \Drupal::service('ai_connect.oauth_service')->createAccessToken('ai-agent-default', 1, ['read','write']);
echo \$t['access_token'];
"

MCP Client Compatibility

webmcp-client implements the MCP stdio transport and works with any MCP-compatible client:

| Client | Platform | Notes | |--------|----------|-------| | Claude Desktop | Desktop app | Full support, recommended | | Cursor | IDE | Add to MCP settings | | Continue.dev | VS Code / JetBrains | Add to ~/.continue/config.json | | Windsurf | IDE | Add to MCP settings | | Cline | VS Code extension | Add to MCP settings | | Zed | Editor | Add to settings.json | | Any MCP stdio client | Various | Works with any client supporting stdio transport |

Configuring in Other Clients

The configuration is always the same pattern. Point to the webmcp-client command:

{
  "command": "webmcp-client"
}

Refer to your client's MCP documentation for the exact config file location.

Continue.dev (~/.continue/config.json)

{
  "mcpServers": [
    {
      "name": "webmcp",
      "command": "webmcp-client",
      "env": { "NODE_TLS_REJECT_UNAUTHORIZED": "0" }
    }
  ]
}

Note: Continue.dev uses an array for mcpServers instead of an object (unlike Cline, Cursor, and other clients).

Requirements

  • Node.js 18 or higher
  • @modelcontextprotocol/sdk (included in node_modules)

License

MIT