mcp-server-sdk
Verified Safeby SylphxAI
Overview
Pure functional MCP (Model Context Protocol) server SDK for building AI-callable tools, resources, and prompts.
Installation
bun run examples/basic.ts httpEnvironment Variables
- PORT
Security Notes
The server uses `@sylphx/vex` for robust, type-safe schema validation on all tool and prompt inputs, mitigating common injection vectors. JSON-RPC messages are parsed and validated by `Rpc.parseMessage`. The HTTP transport allows configurable CORS, including a wildcard ('*') which, while flexible, should be used with caution in production. No direct `eval` calls or hardcoded sensitive credentials were found. Standard network server vulnerabilities (e.g., large payload DoS) are inherent to HTTP transport but are not specific to this SDK's logic.
Similar Servers
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
youdotcom-mcp-server
Provides AI agents with real-time access to web information, including search, AI-powered answers, and content extraction, through the Model Context Protocol.
photon
A multi-tenant platform for hosting and executing AI/ML "Photons" (modular tools/services) with robust authentication, session management, and OAuth capabilities, supporting various data stores.
mcp-agent-kit
Simplifies the creation and management of AI agents, chatbots, and Model Context Protocol (MCP) servers with various LLM providers.