nitro
MCP (Model Context Protocol) server powered by Nitro
claude mcp add --transport stdio peterbud-nitro-mcp-server node src/server.js \ --env AUTH_PROVIDERS_CONFIG="JSON string or path to provider configuration (see env.example)" \ --env NITRO_MCP_SERVER_HOST="The host the server listens on (default: localhost)" \ --env NITRO_MCP_SERVER_PORT="The port the server listens on (default: 3000)"
How to use
Nitro MCP Server is a streaming HTTP MCP server built on the Nitro framework. It exposes a set of tools under the /tools path and demonstrates authentication via pluggable providers (Auth0 and Microsoft Entra ID). The server validates input and output schemas with Zod, and includes example tools like echo (which returns the input) and getPostsByUser (which fetches posts for a given user). It also showcases resource handling with posts and users resources, enabling clients to list and fetch resources as part of MCP interactions. To get started, run the server locally and use the MCP inspector to connect, explore available tools, and invoke them. The inspector URL is typically http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=<token>, and you can point it at your server (for example http://localhost:3000/mcp) to test tool invocations and resource access.
How to install
Prerequisites:
- Node.js v20 or higher
- pnpm package manager
Installation steps:
-
Clone the repository: git clone https://github.com/yourusername/nitro-mcp-server.git cd nitro-mcp-server
-
Install dependencies: pnpm install
-
Create and configure environment variables:
- Copy example env file to .env: cp env.example .env
- Open .env and adjust as needed (host, port, and auth provider settings).
-
Run the server locally: pnpm dev
-
(Optional) Run the MCP inspector in another terminal: pnpm inspect
-
Build for production (produces a build in the .output directory): pnpm build
Additional notes
Tips and notes:
- The server uses a pluggable OAuth provider setup (Auth0 and Entra/Microsoft Entra ID). Configure providers in the environment file or in the server config under mcpServer.auth.providers.
- See lib/auth/ for implementation details and advanced options.
- Ensure you set appropriate rate limiting if exposing the registration endpoint due to DCR limitations of external IdPs.
- The tools are located at /tools and include echo and getPostsByUser; resources include posts and users to demonstrate resource handling.
- The inspector URL can be used to test and connect to your MCP server; ensure the MCP_PROXY_AUTH_TOKEN is provided if required by your environment.
Related MCP Servers
mcp-graphql
Model Context Protocol server for GraphQL
tableau
Tableau's official MCP Server. Helping Agents see and understand data.
filesystem
A Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search/replace and directory tree traversal
any-script
An MCP server that exposes arbitrary CLI tools and shell scripts as MCP Tools
titanmind-whatsapp
A WhatsApp marketing and messaging tool MCP (Model Control Protocol) service using Titanmind. Handles free-form messages (24hr window) and template workflows automatically
google -remote
Collection of Google-native tools (e.g., Gmail, Calendar) for the MCP