MCP Server Templates
MCP 服务器模板
生产级的 MCP 服务器入门模板,包含权限边界、集成测试和评估契约。
模板
模板 | 描述 | 关键特性 |
极简 MCP 服务器 | Echo + 计算工具,Zod 验证 | |
只读数据库访问 | SQL 验证,模式内省,权限边界 | |
外部 API 代理 | 速率限制,凭据作用域,端点配置 |
Related MCP server: mcp-starter-kit
快速开始
克隆此仓库或在 GitHub 上使用“Use this template”
进入所需的模板目录:
cd templates/basic安装依赖:
pnpm install启动服务器:
pnpm start
架构
每个模板都遵循相同的模式:
权限引擎 — 在每次工具调用前评估的声明式规则(允许/拒绝)
内存测试客户端 — 通过 MCP SDK 的 InMemoryTransport 进行集成测试
评估契约 — 与 @visystems/claude-eval-runner 兼容的 YAML 评估规范
共享工具
shared/ 目录包含可重用的工具:
permissions/— 权限策略类型、引擎和 PermissionDeniedErrortesting/— 用于集成测试的内存 MCP 测试客户端errors/— 类型化错误类
开发
pnpm install
pnpm typecheck # TypeScript type checking
pnpm test # Run all tests
pnpm test:shared # Run shared utility tests only
pnpm test:basic # Run basic template tests only许可证
Apache 2.0 — 参见 LICENSE。
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, deploy, and operate MCP servers directly from your GitHub repositories.
The OpenZeppelin Cairo Contracts MCP server generates secure smart contracts in the Cairo language for Starknet environments based on OpenZeppelin templates. It brings OpenZeppelin's proven security and style rules directly into AI-driven development workflows to create safe, production-ready contracts. Key capabilities include providing templates for ERC-20, ERC-721, ERC-1155, Multisig, Governor, and Vesting contracts.
Build multi-tenant apps over MCP. Schemas, CRUD, deploys — access control enforced server-side.
Marketplace and infrastructure for MCP servers and skills: deploy, host, monetize, analytics.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server starter with authentication, observability, and a plugin system for building and deploying MCP servers quickly.MIT
- AlicenseAqualityCmaintenanceA production-ready foundation for building secure, observable MCP servers with built-in authentication, rate limiting, and reference tools like database-query and semantic-search.1536 npmMIT
- FlicenseNot gradedqualityFmaintenanceThis MCP server starter template enables developers to quickly build production-ready MCP servers with Streamable HTTP, stateless design, and OAuth 2.1 authorization. It provides a structured, capability-based architecture with Postgres audit logging and centralized scope enforcement.-
- AlicenseNot gradedqualityCmaintenanceA production-grade MCP starter server in TypeScript with example tools, resources, and integration tests. It provides a clean, extensible foundation for building custom MCP servers.221 npmMIT