Back to Home
nuxt-modules icon

mcp-toolkit

Verified Safe

by nuxt-modules

Overview

Develop a Model Context Protocol (MCP) server directly within a Nuxt application, allowing AI agents to interact with application functionalities, access data, and utilize predefined prompts.

Installation

Run Command
pnpm dev

Environment Variables

  • AI_GATEWAY_API_KEY
  • STUDIO_GITHUB_CLIENT_ID
  • STUDIO_GITHUB_CLIENT_SECRET
  • MCP_URL
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET
  • BETTER_AUTH_URL
  • REDIS_URL
  • CLIENT_PORT
  • SERVER_PORT
  • MCP_INSPECTOR_PORT

Security Notes

The core functionality involves exposing HTTP server endpoints for AI agents. Implementers must ensure robust authentication and authorization, especially for sensitive operations. Examples provided use API keys and middleware for authentication, which is good practice. However, the 'file' resource example (e.g., `apps/playground/server/mcp/resources/file.ts`) demonstrates reading local files via a dynamic path (`file:///project/{+path}`). While its `list` function attempts to filter sensitive directories like `.git` and `node_modules`, the `handler` directly uses `variables.path` joined with `process.cwd()`. This poses a risk of arbitrary file access if the AI client is not strictly constrained or if the application layer does not implement comprehensive path validation or allow-listing. The documentation correctly notes that the application (not the AI) controls which resources are included in context, implying the implementer's responsibility to manage this risk.

Similar Servers

Stats

Interest Score77
Security Score8
Cost ClassMedium
Avg Tokens300
Stars98
Forks3
Last Update2026-01-19

Tags

NuxtMCPAIToolsResources