JW

jasonjmcghee/webmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

921 stars 53 forks 质量 66 趋势 24MIT

早期WebMCP提案/实现——后来由更有能力的网络开发者发展和推动:https://github.com/webmachinelearning/webmcp

概览

补充说明:2026年2月12日 你可能需要官方的W3C仓库+规格:https://github.com/webmachinelearning/webmcp 这是WebMCP早期的提案/实现。我只是一个怀揣梦想的人。 WebMCP的理念此后不断发展,并由更有能力的开发者开发网络。 该实现符合W3C规范。 话虽如此,欢迎大家试用,因为它展示了WebMCP的价值。 支持客户端大型语言模型的网站提案和代码 WebMCP 允许网站向大型语言模型(LLM)分享工具、资源、提示等。换句话说,WebMCP 允许网站成为 MCP 服务器。不共享 API 密钥。使用任何你喜欢的模型。

概述(AI 翻译)

Added 澄清:2026年2月12日


你可能需要官方的W3C仓库+规格:https://github.com/webmachinelearning/webmcp

这是WebMCP早期的提案/实现。我只是一个怀揣梦想的人。

WebMCP的理念此后不断发展,并由更有能力的开发者开发网络。

该实现不符合W3C规范。

话虽如此,欢迎大家试用,因为它展示了WebMCP的价值。


WebMCP

支持客户端大型语言模型的网站提案和代码

WebMCP 允许网站向大型语言模型(LLM)分享工具、资源、提示等。换句话说,WebMCP 允许网站成为 MCP 服务器。不共享 API 密钥。使用任何你喜欢的模型。

这是我搭建的一个简单网站,支持WebMCP

它以一个小部件的形式出现,网站拥有者可以放置在自己的网站上,并展示工具,为客户端的LLM提供提供优质用户体验的工具。

The外观、感觉、使用方式和安全性都完全欢迎贡献和建设性批评。直接构建WebMCP功能的MCP客户端似乎是理想的选择outcome.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Added For Clarification: February 12th, 2026


You likely want the official W3C repo + spec: https://github.com/webmachinelearning/webmcp

This was an early WebMCP proposal / implementation. I was just a guy with a dream.

The idea of WebMCP has since evolved and is being worked on by much more capable folks that develop the web.

This implementation is not compliant with the W3C spec.

All this being said, please do feel free to try it out, as it demonstrates the value of WebMCP.


WebMCP

A proposal and code for websites to support client side LLMs

WebMCP allows websites to share tools, resources, prompts, etc. to LLMs. In other words, WebMCP allows a website to be an MCP server. No sharing API Keys. Use any model you want.

Here’s a simple website I built that is WebMCP-enabled

It comes in the form of a widget that a website owner can put on their site and expose tools to give client-side LLMs what they need to provide a great UX for the user or agent.

The look, feel, how it’s used, and security are all absolutely open for contribution / constructive criticism. MCP Clients directly building WebMCP functionality seems like an ideal outcome.

An end-user can connect to any number of websites at a time - and tools are “scoped” (by name) based on the domain to simplify organization.

Super Quick Demo (20 seconds, Sound on 🔊)

https://github.com/user-attachments/assets/61229470-1242-401e-a7d9-c0d762d7b519

Getting started (using your LLM with websites using WebMCP)

Installation

Just specify your MCP client (claude, cursor, cline, windsurf, or a path to json)

npx -y @jason.today/webmcp@latest --config claude

If you’re interested in setting it up manually, use the command npx -y @jason.today/webmcp@latest --mcp.

Auto-install was inspired by Smithery, but their code is AGPL so I wrote this myself. If it doesn’t work for you or you don’t see your mcp client, please file an issue.

Using WebMCP

When you’re ready to connect to a website, you can ask your model to generate you an mcp token.

Copy the token and paste it to the website’s input. As soon as the website registers with it, it’s thrown away and cannot be used for subsequent registrations or anything else. The website will receive its own session token for making requests.

If you’d rather your model / service never see the token, you can manually execute npx @jason.today/webmcp --new instead.

Some MCP clients, including Claude Desktop, need to be restarted to get access to new tools. (at least at time of writing)

To disconnect, you can close the browser tab, click “disconnect”, or shut down the server with npx @jason.today/webmcp -q.

All configuration files are stored in ~/.webmcp directory.

在 GitHub 查看完整 README

安装

npx -y @jason.today/webmcp@latest --config claude
新手?先看 mcpskill.org 教程 →