mcp-wasm
If you are the rightful owner of mcp-wasm and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A proof-of-concept implementation of a Model Context Protocol (MCP) server that runs in WebAssembly (WASM) within a web browser.
The WASM MCP Server is a proof-of-concept project that demonstrates the integration of Model Context Protocol (MCP) tools and resources within a web browser environment using WebAssembly (WASM). This implementation showcases the potential of running an MCP server directly in the browser, allowing for real-time interaction and computation without the need for a traditional server setup. The project includes a calculator tool for basic arithmetic operations and a storage system for key-value data management. The server is built using the Model Context Protocol SDK and features a custom browser transport layer for communication. The architecture is designed to be simple yet effective, with tools and resources registered and accessed through callback functions and template-based paths, respectively. The project is structured to facilitate easy development and testing, with a focus on demonstrating core MCP concepts.
Features
- Calculator Tool: Performs basic arithmetic operations with input validation and real-time results.
- Storage System: Provides key-value storage functionality with persistent session storage.
- Custom Browser Transport: Implements a custom transport layer for browser-based communication.
- Schema Validation: Utilizes Zod for input and schema validation.
- Template-Based Resources: Uses parameterized paths for resource handling.