Examples & templates
Quickstart guides and examples to get you started with xmcp with real-world implementations and best practices.
Filter by Category
Next.js with Auth
A Next.js application with xmcp and authentication handler
HTTP with Better Auth
HTTP-based xmcp server with better-auth integration
Next.js with Better Auth
Next.js app with xmcp and better-auth integration
Custom Paths
Configure custom file paths for xmcp tools and prompts directories
Custom Webpack Config
Customize webpack configuration for xmcp builds
Request Headers
Access and utilize HTTP request headers in xmcp tool calls
HTTP Transport
Learn how to set up an xmcp server using HTTP transport
mcp-ui
Learn how to set up an xmcp server that serves UI resources with MCP-UI
API Key Middleware
Secure your xmcp server with API key authentication middleware
Middleware Array
Chain multiple middlewares together in xmcp servers
Custom Middleware
Create custom middleware functions for xmcp servers
JWT Middleware
Implement JWT token validation middleware for xmcp servers
OAuth Provider
Complete OAuth provider implementation with xmcp [experimental]
ChatGPT React
Learn how to set up an xmcp server using ChatGPT widgets using React and single tool handlers
ChatGPT Tool
Learn how to set up an xmcp server using ChatGPT widgets using a single tool
ChatGPT Widgets
Learn how to set up an xmcp server using ChatGPT widgets
polar-http
An xmcp server with tool paywalled by Polar
STDIO Transport
Build a command-line xmcp server using STDIO transport
Template Config
Modify the template config in the xmcp.config.ts file.
Express with Adapter
Build a Node.js Express server with xmcp's adapter
Next.js with Adapter & AI SDK tool registry injection
Integrate xmcp into a Next.js application using the adapter and inject the tool registry into the AI SDK
Next.js with Adapter
Integrate xmcp into a Next.js application using the adapter