Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A TypeScript starter for building MCP servers with file-based tools, prompts, and resources via the xmcp framework.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
xmcp Boilerplate is a TypeScript starter for building Model Context Protocol (MCP) servers with the xmcp framework, using file-based auto-discovery for tools, prompts, and resources.
The xmcp Boilerplate is a scaffolded application created with create-xmcp-app from basementstudio. It provides a structured Node.js and TypeScript foundation for MCP servers. It takes tool, prompt, and resource definitions written in TypeScript and produces a runnable MCP server over HTTP or STDIO transports. The project links to the xmcp documentation at xmcp.dev/docs for further learning.
users://{userId}/profile.Run pnpm dev to start the MCP server with the transport selected during scaffolding. To extend it, create a new TypeScript file in the corresponding directory, export a schema, metadata, and default function, and the server picks it up automatically. For production, run pnpm build and launch node dist/http.js or node dist/stdio.js.
Create a new .ts file in src/tools. Export a schema object using Zod, a metadata object with the tool name and description, and a default function that receives validated parameters and returns output. The server registers it automatically.
The boilerplate supports HTTP and STDIO. After building, pnpm start-http and pnpm start-stdio run the corresponding entry points from the dist directory.
Resource URIs derive from the folder structure under src/resources. For example, src/resources/(users)/[userId]/profile.ts maps to users://{userId}/profile. Dynamic parameters are captured in the schema.
