MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

A modern web-based Model Context Protocol (MCP) playground for testing and developing MCP servers and clients

创建于 10/6/2025
更新于 2 months ago
Repository documentation and setup instructions

WebMCP

WebMCP.sh

Web-based MCP playground with in-browser PostgreSQL

License: MIT TypeScript React

Quick StartFeaturesTech StackContributing


Try It Live

Live Demo: webmcp.sh


What is WebMCP?

WebMCP is a W3C web standard currently being incubated by the Web Machine Learning Community Group. It enables websites to expose AI-callable tools through the browser's navigator.modelContext API, allowing AI agents to interact with web applications directly.

WebMCP.sh is a development playground demonstrating these capabilities with an in-browser PostgreSQL database (PGlite).

The Ecosystem

  • WebMCP - The W3C Web Model Context API standard for exposing website tools to AI agents
  • MCP-B - The reference implementation that polyfills navigator.modelContext and bridges WebMCP with MCP
  • Char - MCP-B's in-page AI agent that interacts with WebMCP-enabled websites

Key Capabilities

  • Connect to multiple MCP servers simultaneously
  • Execute tools with real-time parameter validation
  • Browse and manage server resources
  • In-browser PostgreSQL database (PGlite) for persistence
  • Interactive SQL REPL for database exploration

Quick Start

# Clone and install
git clone https://github.com/WebMCP-org/webmcp-sh.git
cd webmcp-sh
pnpm install

# Start development server
pnpm dev

Open http://localhost:5173

Requirements

  • Node.js 18+
  • pnpm 9+

Features

MCP Integration

  • Multi-server connections - Connect to multiple MCP servers via WebSocket
  • Tool execution - Run server tools with schema validation
  • Resource browser - Explore and manage server resources
  • Prompt templates - Create and reuse common prompts

In-Browser Database

  • PGlite - Full PostgreSQL running in the browser via WASM
  • Drizzle ORM - Type-safe database operations
  • SQL REPL - Interactive query interface with autocomplete
  • IndexedDB persistence - Data survives browser sessions

Developer Experience

  • Dark mode - Comfortable viewing in any lighting
  • Real-time updates - Live connection status and streaming
  • Debug mode - Detailed logging for troubleshooting

Tech Stack

| Category | Technology | |----------|------------| | Frontend | React 19, TypeScript 5.8, Vite 7 | | Styling | Tailwind CSS 4, shadcn/ui | | Database | PGlite, Drizzle ORM | | Testing | Playwright | | Deployment | Cloudflare Workers |

Commands

# Development
pnpm dev              # Start dev server
pnpm build            # Build for production
pnpm preview          # Preview production build

# Code Quality
pnpm lint             # Run ESLint
pnpm check            # Typecheck + build + dry-run deploy

# Database
pnpm db:generate      # Generate migrations
pnpm db:studio        # Open Drizzle Studio

# Testing
pnpm test             # Run E2E tests
pnpm test:ui          # Interactive Playwright UI

Project Structure

src/
├── react-app/
│   ├── components/   # UI components
│   ├── hooks/        # React hooks (MCP tools, etc.)
│   ├── lib/
│   │   ├── db/       # PGlite + Drizzle database
│   │   └── webmcp/   # WebMCP client library
│   └── routes/       # Application routes
└── worker/           # Cloudflare Worker

Deployment

Cloudflare Workers

pnpm build
pnpm deploy

Contributing

See CONTRIBUTING.md for development standards.

Resources

WebMCP & MCP-B

Model Context Protocol

Technologies

License

MIT License - see LICENSE for details.


Website: webmcp.shGitHub: WebMCP-org/webmcp-sh

快速设置
此服务器的安装指南

安装包 (如果需要)

npx @modelcontextprotocol/server-webmcp-sh

Cursor 配置 (mcp.json)

{ "mcpServers": { "webmcp-org-webmcp-sh": { "command": "npx", "args": [ "webmcp-org-webmcp-sh" ] } } }