MCP.so
登录

WASM MCP Server

@beekmarks

基本信息

分类

其他

传输方式

stdio

作者

beekmarks

关于 WASM MCP Server

A proof-of-concept implementation of a Model Context Protocol (MCP) server that runs in WebAssembly (WASM) within a web browser. This project demonstrates the integration of MCP tools and resources in a browser environment.

WASM MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

WASM MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is WASM MCP Server?

WASM MCP Server is a proof-of-concept Model Context Protocol (MCP) server that runs in WebAssembly within a web browser. It demonstrates how MCP tools and resources can be integrated into a browser environment, providing a calculator and a key-value storage system.

How to use WASM MCP Server?

Clone the project, install dependencies (npm install), and run the development server with Vite. Open the provided web interface to interact with the calculator (select operation, enter numbers, click "Calculate") and the storage system (enter key/value, click "Set Storage" or "Get Storage").

Key features of WASM MCP Server

  • Calculator tool with basic arithmetic (add, subtract, multiply, divide)
  • Key-value storage with set and retrieve operations
  • Persistent storage within the current browser session
  • Template-based resource paths (e.g., storage://{key})
  • Input validation and error handling for tools and resources
  • Custom browser transport layer for MCP communication

Use cases of WASM MCP Server

  • Demonstrating MCP server execution entirely in a web browser without a backend
  • Building lightweight client-side tools (calculator, storage) using the MCP protocol
  • Prototyping or testing MCP integrations in a controlled browser environment
  • Learning how to implement custom transport layers for MCP in web applications

常见问题

1

What is the purpose of this project?

It is a proof-of-concept to show the feasibility of running an MCP server in a web browser using WebAssembly, focusing on core MCP concepts like tools and resources.

2

What tools and resources are available?

A calculator tool (basic arithmetic) and a key-value storage resource accessed via template paths like `storage://{key}`.

3

What dependencies are required?

The project uses @modelcontextprotocol/sdk, Zod for schema validation, TypeScript, and Vite for development and building.

4

Does data persist across browser sessions?

Currently data persists only within the current browser session. Persistent storage across sessions is planned as a future enhancement.

5

How does the server communicate in the browser?

A custom browser transport layer (`browser-transport.ts`) handles communication between the MCP server and client code running in the browser.

评论

其他 分类下的更多 MCP 服务器