xmcp is an open-source framework tailored for developers looking to build and deploy applications within the Model Context Protocol (MCP) ecosystem. Designed with developer experience (DX) in mind, it simplifies the process of creating powerful tools by offering declarative, file-system-based workflows and seamless integration into existing Next.js or Express applications.
The framework provides a streamlined setup process, allowing users to bootstrap their xmcp app with a single command (npx create-xmcp-app
). Its architecture includes features like file system routing, where tools are automatically registered from a designated tools/
directory, and hot reloading for instant feedback during development. Middleware support enables developers to implement authentication and custom request/response processing, while an extensible configuration system allows for tailored setups via the xmcp.config.ts
file.
xmcp is designed for flexibility, supporting deployment across any platform, with built-in compatibility for Vercel for a hassle-free deployment experience. The framework generates a clear project structure, with components such as middleware, tools, and built outputs, making it intuitive and efficient for developers to ship MCP servers.