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

@mcp-web/client

v0.1.3

Published

An MCP (Model Context Protocol) client that connects AI applications like Claude Desktop to the MCP bridge server, enabling AI-powered control of web applications.

Readme

MCP Client

An MCP (Model Context Protocol) client that connects AI applications like Claude Desktop to the MCP bridge server, enabling AI-powered control of web applications.

Overview

This package provides the MCP client that acts as a bridge between AI applications (like Claude Desktop) and web applications. It should be installed and configured in your AI application to connect to the MCP bridge server that communicates with your web application.

Installation

The MCP client is typically installed via npm when configuring your AI application:

npx @mcp-web/client

Configuration

For Claude Desktop

The MCP client is configured through Claude Desktop's configuration file. However, you should not manually configure this. Instead, the configuration is automatically generated by your web application using the @mcp-web/core library.

Getting Configuration from Your Web App

When you integrate @mcp-web/core into your web application, it automatically generates the correct MCP configuration. Your web application should expose this configuration to users (typically through a help dialog or setup page).

Here's how a web application typically exposes the configuration:

// In your web application
import { MCPWeb } from '@mcp-web/core';

const mcp = new MCPWeb({
  name: 'My Web App',
  description: 'Control my web application',
});

// Get the MCP configuration for Claude Desktop
const mcpConfig = mcp.mcpConfig;

// Display this to users so they can copy it to Claude Desktop
console.log(JSON.stringify(mcpConfig, null, 2));

Example Configuration

The generated configuration will look like this:

{
  "My Web App": {
    "command": "npx",
    "args": ["@mcp-web/client"],
    "env": {
      "MCP_SERVER_URL": "http://localhost:3002",
      "AUTH_TOKEN": "your-unique-auth-token"
    }
  }
}

This configuration should be added to your Claude Desktop config file at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Under the mcpServers section:

{
  "mcpServers": {
    "My Web App": {
      "command": "npx",
      "args": ["@mcp-web/client"],
      "env": {
        "MCP_SERVER_URL": "http://localhost:3002",
        "AUTH_TOKEN": "your-unique-auth-token"
      }
    }
  }
}

Environment Variables

The MCP client uses these environment variables (automatically set by the configuration):

  • MCP_SERVER_URL: URL of the bridge server (typically http://localhost:3002)
  • AUTH_TOKEN: Authentication token for secure communication (automatically generated by your web app)

How It Works

  1. Web Application: Uses @mcp-web/core to register tools and connect to the bridge server
  2. Bridge Server: Mediates communication between the web app and MCP clients
  3. MCP Client (this package): Connects Claude Desktop to the bridge server
  4. Claude Desktop: Uses the MCP client to access tools from your web application
Claude Desktop ↔ MCP Client ↔ Bridge Server ↔ Web Application

Setup Process

  1. Install the web library in your web application:

    npm install @mcp-web/core
  2. Integrate MCP tools in your web application using @mcp-web/core

  3. Get the configuration from your web app (usually shown in a help dialog)

  4. Copy the configuration to Claude Desktop's config file

  5. Restart Claude Desktop to load the new MCP server

  6. Start using your web application through Claude Desktop!

Troubleshooting

  • Connection refused: Make sure your web application is running and the bridge server is active
  • Authentication failed: The auth token in Claude Desktop config must match the one generated by your web app
  • Tools not available: Ensure your web application has registered tools using mcp.addTool()

Security

The MCP client uses secure authentication tokens that are:

  • Automatically generated by your web application
  • Unique per application instance
  • Required for all bridge server communications

Development

This package is part of the MCP Frontend Integration System. For development:

npm run build    # Build the client
npm run dev      # Watch mode for development

Examples

See the HiGlass demo for a complete example of:

  • Setting up @mcp-web/core in a React application
  • Registering various types of tools
  • Displaying the MCP configuration to users
  • Complete integration workflow