Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

nuxt-mcp-dev

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-dev'],
})

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