mcp-toolkit
Create MCP servers directly in your Nuxt application. Define tools, resources, and prompts with a simple and intuitive API.
claude mcp add --transport stdio nuxt-modules-mcp-toolkit node path/to/server.js \ --env MCP_PORT="Port for MCP server (default or placeholder)"
How to use
Nuxt MCP Toolkit is a module that lets you expose Model Context Protocol (MCP) endpoints directly from within a Nuxt application. It automatically discovers and registers tools, resources, and prompts based on your file structure, enabling you to run multiple MCP endpoints in a single Nuxt app with zero configuration. The toolkit also provides a built-in inspector for visual debugging in Nuxt DevTools, benefits from TypeScript-first development with auto-imports, and validates inputs and outputs with Zod, helping you catch issues early in the development cycle. After installation, you can manage MCP endpoints by organizing your tools, resources, and prompts in your Nuxt project folders, and the module will wire them up automatically as MCP servers.
To use it, install Nuxt MCP Toolkit in your Nuxt project and run your Nuxt development server as usual. The toolkit will scan your project for MCP definitions and expose endpoints that your AI agents or clients can interact with. With support for multiple endpoints, you can host several distinct MCP servers within a single application (for example, separate endpoints for different domains or projects). The built-in inspector helps you visualize and debug the MCP flows during development, and the TypeScript-first approach provides strong typing and safer tool definitions throughout your MCP setup.
How to install
Prerequisites:
- Node.js installed (LTS version recommended)
- A Nuxt project (Nuxt 3 or Nuxt 2 with appropriate setup)
Installation steps:
- Install the Nuxt MCP Toolkit module and its peer dependency:
# Using npm
npm install -D @nuxtjs/mcp-toolkit zod
# Using yarn
yarn add -D @nuxtjs/mcp-toolkit zod
# Using pnpm
pnpm add -D @nuxtjs/mcp-toolkit zod
- Add the module to your Nuxt configuration (nuxt.config.*) if required by your Nuxt version, typically via:
export default {
modules: ["@nuxtjs/mcp-toolkit"]
}
- Start the development server as you normally would for Nuxt:
# npm
npm run dev
# yarn
yarn dev
- (Optional) If you’re integrating with a tooling workflow like Agent Skills, follow the provided guides to ensure your MCP endpoints are correctly defined within your Nuxt app structure.
Note: The README examples show a minimal setup using npx to install or enable the tooling. The exact Nuxt integration may vary depending on your Nuxt version and project structure. Refer to the full documentation linked in the repository for version-specific steps.
Additional notes
Tips and notes:
- This module enables zero-configuration discovery of MCP tools, resources, and prompts by scanning your project files. Place your MCP definitions in the recommended directory structure so they’re automatically picked up.
- You can run multiple MCP endpoints in a single Nuxt app. Each endpoint corresponds to a separate server configuration within your Nuxt project.
- The toolkit includes a built-in inspector for debugging MCP flows within Nuxt DevTools. Use it to visualize requests, responses, and validation errors.
- Ensure Zod is installed (as shown in installation steps) to enable robust input/output validation.
- If you encounter issues with auto-imports or endpoint discovery, verify your file paths and naming conventions align with the toolkit’s discovery rules and consult the documentation for any Nuxt version-specific caveats.
- When deploying, consider how you expose MCP endpoints (e.g., within your app’s API routes or a dedicated server) and ensure proper authentication and access controls for your environment.
Related MCP Servers
mcp
🤖 A Model Context Protocol (MCP) library for use with Agentic chat bots
CanvasMCPClient
Canvas MCP Client is an open-source, self-hostable dashboard application built around an infinite, zoomable, and pannable canvas. It provides a unified interface for interacting with multiple MCP (Model Context Protocol) servers through a flexible, widget-based system.
mcp -amazon
🛍📦 Unofficial Amazon Model Context Protocol Server (MCP) - Search products and purchase directly from Claude AI! ✨
docmole
Dig through any documentation with AI - MCP server for Claude, Cursor, and other AI assistants
obsidian
MCP server for Obsidian vault management - enables Claude and other AI assistants to read, write, search, and organize your notes
driflyte
The Driflyte MCP Server exposes tools that allow AI assistants to query and retrieve topic-specific knowledge from recursively crawled and indexed web pages.