🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

nuxt-mcp

Package Overview
Dependencies
Maintainers
1
Versions
10
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.2
latest
Source
npm
Version published
Weekly downloads
1.5K
17.75%
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, 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 16 May 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