You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

nuxt-mcp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-mcp

MCP server helping models to understand your Nuxt app better.

0.2.3
latest
Source
npmnpm
Version published
Weekly downloads
1.8K
-15.77%
Maintainers
1
Weekly downloads
 
Created
Source

nuxt-mcp

npm version npm downloads bundle JSDocs License

MCP server helping models to understand your Nuxt app better.

[!IMPORTANT] Experimental. Use with caution.

// nuxt.config.ts

export default defineNuxtConfig({
  modules: ['nuxt-mcp'],
})

Then the MCP server will be available at http://localhost:3000/__mcp/sse.

💡 When using VSCode, Cursor, Windsurf, Claude Code, the module will automatically update the config files for you.

Module Hooks

For other modules to provide additional information to MCP, you can use the mcp:setup hook.

// src/module.ts

export default defineNuxtModule({
  meta: {
    name: 'my-module',
  },
  async setup(options, nuxt) {
    nuxt.hook('mcp:setup', ({ mcp }) => {
      // Setup your MCP tools here
      // For example
      mcp.tool('get-nuxt-root', 'Get the Nuxt root path', {}, async () => {
        return {
          content: [{
            type: 'text',
            text: nuxt.options.rootDir,
          }],
        }
      })
    })
  },
})

Sponsors

License

MIT License © Anthony Fu

Keywords

nuxt

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts