[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app":52,"blogToc-\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app":1031,"blog-surrounding-\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app":1726,"blog-similar-posts-\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app":1731},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":1004,"cover":1010,"date":1011,"description":1012,"extension":1013,"lastUpdated":1014,"meta":1015,"navigation":11,"ogImage":1014,"path":1016,"readingTime":1017,"robots":1014,"schemaOrg":1014,"seo":1022,"sitemap":1023,"stem":1024,"tags":1025,"__hash__":1030},"blog\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app\u002Findex.md","How to Set Up an MCP Server for an Existing Nuxt App",{"type":56,"value":57,"toc":991},"minimark",[58,62,70,75,78,81,113,116,119,123,136,147,150,154,157,181,185,188,216,219,237,241,246,352,356,361,831,834,838,841,853,856,860,864,867,875,914,922,925,940,944,947,961,964,968,971,974,978,981,987],[59,60,61],"p",{},"In this article, I'll show you how to add an MCP server to an existing Nuxt app with a practical, minimal example.",[59,63,64,65,69],{},"We will build a mocked weather tool using the Nuxt MCP Toolkit and expose it at ",[66,67,68],"code",{},"\u002Fmcp",". Everything runs locally, so you don't need API keys or external services.",[71,72,74],"h2",{"id":73},"what-is-mcp-beginner-intro","What is MCP? (Beginner Intro)",[59,76,77],{},"MCP (Model Context Protocol) is a standard way for applications and AI agents to talk to tools and data sources.",[59,79,80],{},"In simple terms:",[82,83,84,104,110],"ul",{},[85,86,87,88,92,93,96,97,96,100,103],"li",{},"an MCP ",[89,90,91],"strong",{},"server"," exposes tools (for example: ",[66,94,95],{},"get_weather",", ",[66,98,99],{},"search_docs",[66,101,102],{},"query_database",")",[85,105,87,106,109],{},[89,107,108],{},"client"," calls those tools",[85,111,112],{},"both communicate through a shared protocol",[59,114,115],{},"The big benefit is that tools become reusable across different clients instead of being tightly coupled to one app.",[59,117,118],{},"In my daily work, my most used MCP servers are Nuxt, Nuxt UI, and Directus. Those integrations are really valuable because they provide better context to the agent and usually lead to much better output quality.",[71,120,122],{"id":121},"why-nuxt-mcp-toolkit","Why Nuxt MCP Toolkit?",[59,124,125,126,135],{},"Because this tutorial is Nuxt-specific, the best default is ",[127,128,132],"a",{"href":129,"rel":130},"https:\u002F\u002Fmcp-toolkit.nuxt.dev\u002F",[131],"nofollow",[66,133,134],{},"@nuxtjs\u002Fmcp-toolkit",":",[82,137,138,141,144],{},[85,139,140],{},"native Nuxt module integration",[85,142,143],{},"less boilerplate than wiring the low-level MCP SDK manually",[85,145,146],{},"built-in conventions for tools, resources, and prompts",[59,148,149],{},"You can absolutely use the plain MCP SDK, but in most Nuxt projects, the toolkit gives you the fastest path.",[71,151,153],{"id":152},"what-we-build","What We Build",[59,155,156],{},"Inside your existing Nuxt project, we will create:",[158,159,160,166,172,178],"ol",{},[85,161,162,163],{},"Nuxt MCP Toolkit setup in ",[66,164,165],{},"nuxt.config.ts",[85,167,168,169],{},"A weather tool in ",[66,170,171],{},"server\u002Fmcp\u002Ftools\u002Fget-weather.ts",[85,173,174,175],{},"A local MCP endpoint at ",[66,176,177],{},"http:\u002F\u002Flocalhost:3000\u002Fmcp",[85,179,180],{},"A quick local test via MCP Inspector \u002F your IDE",[71,182,184],{"id":183},"_1-install-dependencies","1) Install Dependencies",[59,186,187],{},"Install the Nuxt MCP Toolkit:",[189,190,195],"pre",{"className":191,"code":192,"language":193,"meta":194,"style":194},"language-bash shiki shiki-themes github-light poimandres poimandres","pnpm add @nuxtjs\u002Fmcp-toolkit zod\n","bash","",[66,196,197],{"__ignoreMap":194},[198,199,202,206,210,213],"span",{"class":200,"line":201},"line",1,[198,203,205],{"class":204},"sgaD9","pnpm",[198,207,209],{"class":208},"sMmyg"," add",[198,211,212],{"class":208}," @nuxtjs\u002Fmcp-toolkit",[198,214,215],{"class":208}," zod\n",[59,217,218],{},"Or let Nuxt install and configure it for you:",[189,220,222],{"className":191,"code":221,"language":193,"meta":194,"style":194},"npx nuxt add mcp\n",[66,223,224],{"__ignoreMap":194},[198,225,226,229,232,234],{"class":200,"line":201},[198,227,228],{"class":204},"npx",[198,230,231],{"class":208}," nuxt",[198,233,209],{"class":208},[198,235,236],{"class":208}," mcp\n",[71,238,240],{"id":239},"_2-enable-the-module","2) Enable the Module",[59,242,243,244,135],{},"Add the module to your ",[66,245,165],{},[189,247,251],{"className":248,"code":249,"filename":165,"language":250,"meta":194,"style":194},"language-ts shiki shiki-themes github-light poimandres poimandres","export default defineNuxtConfig({\n  modules: ['@nuxtjs\u002Fmcp-toolkit'],\n  mcp: {\n    name: 'My Nuxt Weather MCP Server',\n    route: '\u002Fmcp',\n  },\n})\n","ts",[66,252,253,270,294,305,324,340,346],{"__ignoreMap":194},[198,254,255,259,262,266],{"class":200,"line":201},[198,256,258],{"class":257},"sRZEA","export",[198,260,261],{"class":257}," default",[198,263,265],{"class":264},"sHQ3f"," defineNuxtConfig",[198,267,269],{"class":268},"sygvE","({\n",[198,271,273,277,279,282,286,289,291],{"class":200,"line":272},2,[198,274,276],{"class":275},"srga6","  modules",[198,278,135],{"class":268},[198,280,281],{"class":268}," [",[198,283,285],{"class":284},"srEIG","'",[198,287,134],{"class":288},"skTdI",[198,290,285],{"class":284},[198,292,293],{"class":268},"],\n",[198,295,297,300,302],{"class":200,"line":296},3,[198,298,299],{"class":275},"  mcp",[198,301,135],{"class":268},[198,303,304],{"class":268}," {\n",[198,306,308,311,313,316,319,321],{"class":200,"line":307},4,[198,309,310],{"class":275},"    name",[198,312,135],{"class":268},[198,314,315],{"class":284}," '",[198,317,318],{"class":288},"My Nuxt Weather MCP Server",[198,320,285],{"class":284},[198,322,323],{"class":268},",\n",[198,325,327,330,332,334,336,338],{"class":200,"line":326},5,[198,328,329],{"class":275},"    route",[198,331,135],{"class":268},[198,333,315],{"class":284},[198,335,68],{"class":288},[198,337,285],{"class":284},[198,339,323],{"class":268},[198,341,343],{"class":200,"line":342},6,[198,344,345],{"class":268},"  },\n",[198,347,349],{"class":200,"line":348},7,[198,350,351],{"class":268},"})\n",[71,353,355],{"id":354},"_3-create-the-weather-tool","3) Create the Weather Tool",[59,357,358,359,135],{},"Create ",[66,360,171],{},[189,362,364],{"className":248,"code":363,"filename":171,"language":250,"meta":194,"style":194},"import { z } from 'zod'\n\nexport default defineMcpTool({\n  name: 'get-weather',\n  description: 'Get mocked weather data for a city',\n  inputSchema: {\n    city: z.string().min(1).describe('City name, for example Berlin'),\n  },\n  handler: async ({ city }) => {\n    const normalizedCity = city.trim().toLowerCase()\n\n    const mockedWeatherByCity: Record\u003Cstring, { temperatureC: number; condition: string }> = {\n      berlin: { temperatureC: 24, condition: 'Sunny' },\n      hamburg: { temperatureC: 20, condition: 'Cloudy' },\n      munich: { temperatureC: 22, condition: 'Partly cloudy' },\n    }\n\n    const weather = mockedWeatherByCity[normalizedCity] ?? {\n      temperatureC: 21,\n      condition: 'Unknown (mock fallback)',\n    }\n\n    return {\n      city,\n      ...weather,\n    }\n  },\n})\n",[66,365,366,392,397,408,424,440,449,496,501,529,557,562,614,647,679,711,717,722,748,761,778,783,788,797,805,816,821,826],{"__ignoreMap":194},[198,367,368,371,374,377,380,384,386,389],{"class":200,"line":201},[198,369,370],{"class":257},"import",[198,372,373],{"class":268}," {",[198,375,376],{"class":275}," z",[198,378,379],{"class":268}," }",[198,381,383],{"class":382},"sOygg"," from",[198,385,315],{"class":284},[198,387,388],{"class":288},"zod",[198,390,391],{"class":284},"'\n",[198,393,394],{"class":200,"line":272},[198,395,396],{"emptyLinePlaceholder":11},"\n",[198,398,399,401,403,406],{"class":200,"line":296},[198,400,258],{"class":257},[198,402,261],{"class":257},[198,404,405],{"class":264}," defineMcpTool",[198,407,269],{"class":268},[198,409,410,413,415,417,420,422],{"class":200,"line":307},[198,411,412],{"class":275},"  name",[198,414,135],{"class":268},[198,416,315],{"class":284},[198,418,419],{"class":288},"get-weather",[198,421,285],{"class":284},[198,423,323],{"class":268},[198,425,426,429,431,433,436,438],{"class":200,"line":326},[198,427,428],{"class":275},"  description",[198,430,135],{"class":268},[198,432,315],{"class":284},[198,434,435],{"class":288},"Get mocked weather data for a city",[198,437,285],{"class":284},[198,439,323],{"class":268},[198,441,442,445,447],{"class":200,"line":342},[198,443,444],{"class":275},"  inputSchema",[198,446,135],{"class":268},[198,448,304],{"class":268},[198,450,451,454,456,459,462,465,468,471,474,478,481,484,486,488,491,493],{"class":200,"line":348},[198,452,453],{"class":275},"    city",[198,455,135],{"class":268},[198,457,376],{"class":458},"sMzB8",[198,460,461],{"class":268},".",[198,463,464],{"class":264},"string",[198,466,467],{"class":268},"().",[198,469,470],{"class":264},"min",[198,472,473],{"class":268},"(",[198,475,477],{"class":476},"s6g4C","1",[198,479,480],{"class":268},").",[198,482,483],{"class":264},"describe",[198,485,473],{"class":268},[198,487,285],{"class":284},[198,489,490],{"class":288},"City name, for example Berlin",[198,492,285],{"class":284},[198,494,495],{"class":268},"),\n",[198,497,499],{"class":200,"line":498},8,[198,500,345],{"class":268},[198,502,504,508,510,513,516,520,523,527],{"class":200,"line":503},9,[198,505,507],{"class":506},"sBmmg","  handler",[198,509,135],{"class":268},[198,511,512],{"class":257}," async",[198,514,515],{"class":268}," ({",[198,517,519],{"class":518},"sadQ_"," city",[198,521,522],{"class":268}," })",[198,524,526],{"class":525},"slWGy"," =>",[198,528,304],{"class":268},[198,530,532,535,539,542,544,546,549,551,554],{"class":200,"line":531},10,[198,533,534],{"class":525},"    const",[198,536,538],{"class":537},"sGRIV"," normalizedCity",[198,540,541],{"class":525}," =",[198,543,519],{"class":458},[198,545,461],{"class":268},[198,547,548],{"class":264},"trim",[198,550,467],{"class":268},[198,552,553],{"class":264},"toLowerCase",[198,555,556],{"class":268},"()\n",[198,558,560],{"class":200,"line":559},11,[198,561,396],{"emptyLinePlaceholder":11},[198,563,565,567,570,572,576,579,582,585,587,591,593,596,599,602,604,607,610,612],{"class":200,"line":564},12,[198,566,534],{"class":525},[198,568,569],{"class":537}," mockedWeatherByCity",[198,571,135],{"class":525},[198,573,575],{"class":574},"s4XUm"," Record",[198,577,578],{"class":268},"\u003C",[198,580,464],{"class":581},"svhIC",[198,583,584],{"class":268},",",[198,586,373],{"class":268},[198,588,590],{"class":589},"sXjHU"," temperatureC",[198,592,135],{"class":525},[198,594,595],{"class":581}," number",[198,597,598],{"class":268},";",[198,600,601],{"class":589}," condition",[198,603,135],{"class":525},[198,605,606],{"class":581}," string",[198,608,609],{"class":268}," }>",[198,611,541],{"class":525},[198,613,304],{"class":268},[198,615,617,620,622,624,626,628,631,633,635,637,639,642,644],{"class":200,"line":616},13,[198,618,619],{"class":275},"      berlin",[198,621,135],{"class":268},[198,623,373],{"class":268},[198,625,590],{"class":275},[198,627,135],{"class":268},[198,629,630],{"class":476}," 24",[198,632,584],{"class":268},[198,634,601],{"class":275},[198,636,135],{"class":268},[198,638,315],{"class":284},[198,640,641],{"class":288},"Sunny",[198,643,285],{"class":284},[198,645,646],{"class":268}," },\n",[198,648,650,653,655,657,659,661,664,666,668,670,672,675,677],{"class":200,"line":649},14,[198,651,652],{"class":275},"      hamburg",[198,654,135],{"class":268},[198,656,373],{"class":268},[198,658,590],{"class":275},[198,660,135],{"class":268},[198,662,663],{"class":476}," 20",[198,665,584],{"class":268},[198,667,601],{"class":275},[198,669,135],{"class":268},[198,671,315],{"class":284},[198,673,674],{"class":288},"Cloudy",[198,676,285],{"class":284},[198,678,646],{"class":268},[198,680,682,685,687,689,691,693,696,698,700,702,704,707,709],{"class":200,"line":681},15,[198,683,684],{"class":275},"      munich",[198,686,135],{"class":268},[198,688,373],{"class":268},[198,690,590],{"class":275},[198,692,135],{"class":268},[198,694,695],{"class":476}," 22",[198,697,584],{"class":268},[198,699,601],{"class":275},[198,701,135],{"class":268},[198,703,315],{"class":284},[198,705,706],{"class":288},"Partly cloudy",[198,708,285],{"class":284},[198,710,646],{"class":268},[198,712,714],{"class":200,"line":713},16,[198,715,716],{"class":268},"    }\n",[198,718,720],{"class":200,"line":719},17,[198,721,396],{"emptyLinePlaceholder":11},[198,723,725,727,730,732,734,737,740,743,746],{"class":200,"line":724},18,[198,726,534],{"class":525},[198,728,729],{"class":537}," weather",[198,731,541],{"class":525},[198,733,569],{"class":458},[198,735,736],{"class":268},"[",[198,738,739],{"class":458},"normalizedCity",[198,741,742],{"class":268},"]",[198,744,745],{"class":525}," ??",[198,747,304],{"class":268},[198,749,751,754,756,759],{"class":200,"line":750},19,[198,752,753],{"class":275},"      temperatureC",[198,755,135],{"class":268},[198,757,758],{"class":476}," 21",[198,760,323],{"class":268},[198,762,764,767,769,771,774,776],{"class":200,"line":763},20,[198,765,766],{"class":275},"      condition",[198,768,135],{"class":268},[198,770,315],{"class":284},[198,772,773],{"class":288},"Unknown (mock fallback)",[198,775,285],{"class":284},[198,777,323],{"class":268},[198,779,781],{"class":200,"line":780},21,[198,782,716],{"class":268},[198,784,786],{"class":200,"line":785},22,[198,787,396],{"emptyLinePlaceholder":11},[198,789,791,795],{"class":200,"line":790},23,[198,792,794],{"class":793},"sdZ-l","    return",[198,796,304],{"class":268},[198,798,800,803],{"class":200,"line":799},24,[198,801,802],{"class":458},"      city",[198,804,323],{"class":268},[198,806,808,811,814],{"class":200,"line":807},25,[198,809,810],{"class":525},"      ...",[198,812,813],{"class":458},"weather",[198,815,323],{"class":268},[198,817,819],{"class":200,"line":818},26,[198,820,716],{"class":268},[198,822,824],{"class":200,"line":823},27,[198,825,345],{"class":268},[198,827,829],{"class":200,"line":828},28,[198,830,351],{"class":268},[59,832,833],{},"That is the full MCP tool. No manual MCP server bootstrapping is needed.",[71,835,837],{"id":836},"_4-run-the-app","4) Run the App",[59,839,840],{},"Start Nuxt:",[189,842,844],{"className":191,"code":843,"language":193,"meta":194,"style":194},"pnpm dev\n",[66,845,846],{"__ignoreMap":194},[198,847,848,850],{"class":200,"line":201},[198,849,205],{"class":204},[198,851,852],{"class":208}," dev\n",[59,854,855],{},"Now your MCP endpoint is available at:",[59,857,858],{},[66,859,177],{},[71,861,863],{"id":862},"_5-test-the-tool","5) Test the Tool",[59,865,866],{},"You can test the tool in two quick ways:",[158,868,869],{},[85,870,871,872,874],{},"Open MCP Inspector via Nuxt DevTools and call ",[66,873,419],{}," with:",[189,876,879],{"className":877,"code":878,"language":5,"meta":194,"style":194},"language-json shiki shiki-themes github-light poimandres poimandres","{\n  \"city\": \"Berlin\"\n}\n",[66,880,881,886,909],{"__ignoreMap":194},[198,882,883],{"class":200,"line":201},[198,884,885],{"class":268},"{\n",[198,887,888,892,895,898,901,903,906],{"class":200,"line":272},[198,889,891],{"class":890},"saHH4","  \"",[198,893,894],{"class":537},"city",[198,896,897],{"class":890},"\"",[198,899,900],{"class":268},": ",[198,902,897],{"class":284},[198,904,905],{"class":288},"Berlin",[198,907,908],{"class":284},"\"\n",[198,910,911],{"class":200,"line":296},[198,912,913],{"class":268},"}\n",[158,915,916],{"start":272},[85,917,918,919,921],{},"Connect your IDE to ",[66,920,177],{}," and run the tool from there.",[59,923,924],{},"If you want a one-liner for local IDE setup, you can use:",[189,926,928],{"className":191,"code":927,"language":193,"meta":194,"style":194},"npx add-mcp http:\u002F\u002Flocalhost:3000\u002Fmcp\n",[66,929,930],{"__ignoreMap":194},[198,931,932,934,937],{"class":200,"line":201},[198,933,228],{"class":204},[198,935,936],{"class":208}," add-mcp",[198,938,939],{"class":208}," http:\u002F\u002Flocalhost:3000\u002Fmcp\n",[71,941,943],{"id":942},"why-this-pattern-is-useful","Why This Pattern Is Useful",[59,945,946],{},"Even though this is a tiny example, the architecture scales nicely:",[82,948,949,952,955,958],{},[85,950,951],{},"swap mocked data with a real API later",[85,953,954],{},"keep integrations behind MCP tools",[85,956,957],{},"reuse the same tools across different AI clients",[85,959,960],{},"stay inside Nuxt conventions instead of building MCP wiring from scratch",[59,962,963],{},"You can start with one tool and grow your MCP server over time.",[71,965,967],{"id":966},"plain-sdk-vs-nuxt-toolkit","Plain SDK vs Nuxt Toolkit",[59,969,970],{},"If you are working in Nuxt, I recommend the Nuxt MCP Toolkit as the default.",[59,972,973],{},"Use the plain MCP SDK directly if you need framework-agnostic infrastructure or want full low-level control.",[71,975,977],{"id":976},"conclusion","Conclusion",[59,979,980],{},"Adding MCP to an existing Nuxt app is easier than it first looks.",[59,982,983,984,986],{},"With the Nuxt MCP Toolkit, you can focus on tool logic instead of protocol plumbing. Start with one small tool like ",[66,985,419],{},", validate your workflow locally, and then evolve it into real integrations.",[988,989,990],"style",{},"html pre.shiki code .sgaD9, html code.shiki .sgaD9{--shiki-light:#6F42C1;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sHQ3f, html code.shiki .sHQ3f{--shiki-light:#6F42C1;--shiki-default:#E4F0FBD0;--shiki-dark:#E4F0FBD0}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .srga6, html code.shiki .srga6{--shiki-light:#24292E;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sOygg, html code.shiki .sOygg{--shiki-light:#D73A49;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .sMzB8, html code.shiki .sMzB8{--shiki-light:#24292E;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sBmmg, html code.shiki .sBmmg{--shiki-light:#6F42C1;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sadQ_, html code.shiki .sadQ_{--shiki-light:#E36209;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .slWGy, html code.shiki .slWGy{--shiki-light:#D73A49;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sGRIV, html code.shiki .sGRIV{--shiki-light:#005CC5;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .s4XUm, html code.shiki .s4XUm{--shiki-light:#6F42C1;--shiki-default:#A6ACCDC0;--shiki-dark:#A6ACCDC0}html pre.shiki code .svhIC, html code.shiki .svhIC{--shiki-light:#005CC5;--shiki-default:#A6ACCDC0;--shiki-dark:#A6ACCDC0}html pre.shiki code .sXjHU, html code.shiki .sXjHU{--shiki-light:#E36209;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sdZ-l, html code.shiki .sdZ-l{--shiki-light:#D73A49;--shiki-default:#5DE4C7C0;--shiki-dark:#5DE4C7C0}html pre.shiki code .saHH4, html code.shiki .saHH4{--shiki-light:#005CC5;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}",{"title":194,"searchDepth":272,"depth":272,"links":992},[993,994,995,996,997,998,999,1000,1001,1002,1003],{"id":73,"depth":272,"text":74},{"id":121,"depth":272,"text":122},{"id":152,"depth":272,"text":153},{"id":183,"depth":272,"text":184},{"id":239,"depth":272,"text":240},{"id":354,"depth":272,"text":355},{"id":836,"depth":272,"text":837},{"id":862,"depth":272,"text":863},{"id":942,"depth":272,"text":943},{"id":966,"depth":272,"text":967},{"id":976,"depth":272,"text":977},[1005,1006,1007,1008,1009],"development","frontend","vue-js","nuxt-js","tools","blog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app\u002Fog.png","2026-07-28","A beginner-friendly, practical guide to adding an MCP server to an existing Nuxt app using the Nuxt MCP Toolkit and a mocked weather tool.","md",null,{},"\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app",{"text":1018,"minutes":1019,"time":1020,"words":1021},"3 min read",2.83,169800,566,{"title":54,"description":1012},{"loc":1016,"lastmod":1011},"blog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app\u002Findex",[1026,1027,1028,1029],"mcp","nuxt","typescript","ai","WDDLvM8qJmU9v_X3GucqZz3Ny2Esq8t7i01I0-92_h4",{"id":1032,"title":54,"body":1033,"cover":1010,"description":1012,"extension":1013,"meta":1719,"navigation":11,"path":1016,"robots":1014,"seo":1723,"sitemap":1724,"stem":1024,"__hash__":1725},"content\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app\u002Findex.md",{"type":56,"value":1034,"toc":1706},[1035,1037,1041,1043,1045,1047,1065,1067,1069,1071,1078,1086,1088,1090,1092,1108,1110,1112,1126,1128,1142,1144,1148,1222,1224,1228,1594,1596,1598,1600,1610,1612,1616,1618,1620,1626,1654,1660,1662,1674,1676,1678,1688,1690,1692,1694,1696,1698,1700,1704],[59,1036,61],{},[59,1038,64,1039,69],{},[66,1040,68],{},[71,1042,74],{"id":73},[59,1044,77],{},[59,1046,80],{},[82,1048,1049,1059,1063],{},[85,1050,87,1051,92,1053,96,1055,96,1057,103],{},[89,1052,91],{},[66,1054,95],{},[66,1056,99],{},[66,1058,102],{},[85,1060,87,1061,109],{},[89,1062,108],{},[85,1064,112],{},[59,1066,115],{},[59,1068,118],{},[71,1070,122],{"id":121},[59,1072,125,1073,135],{},[127,1074,1076],{"href":129,"rel":1075},[131],[66,1077,134],{},[82,1079,1080,1082,1084],{},[85,1081,140],{},[85,1083,143],{},[85,1085,146],{},[59,1087,149],{},[71,1089,153],{"id":152},[59,1091,156],{},[158,1093,1094,1098,1102,1106],{},[85,1095,162,1096],{},[66,1097,165],{},[85,1099,168,1100],{},[66,1101,171],{},[85,1103,174,1104],{},[66,1105,177],{},[85,1107,180],{},[71,1109,184],{"id":183},[59,1111,187],{},[189,1113,1114],{"className":191,"code":192,"language":193,"meta":194,"style":194},[66,1115,1116],{"__ignoreMap":194},[198,1117,1118,1120,1122,1124],{"class":200,"line":201},[198,1119,205],{"class":204},[198,1121,209],{"class":208},[198,1123,212],{"class":208},[198,1125,215],{"class":208},[59,1127,218],{},[189,1129,1130],{"className":191,"code":221,"language":193,"meta":194,"style":194},[66,1131,1132],{"__ignoreMap":194},[198,1133,1134,1136,1138,1140],{"class":200,"line":201},[198,1135,228],{"class":204},[198,1137,231],{"class":208},[198,1139,209],{"class":208},[198,1141,236],{"class":208},[71,1143,240],{"id":239},[59,1145,243,1146,135],{},[66,1147,165],{},[189,1149,1150],{"className":248,"code":249,"filename":165,"language":250,"meta":194,"style":194},[66,1151,1152,1162,1178,1186,1200,1214,1218],{"__ignoreMap":194},[198,1153,1154,1156,1158,1160],{"class":200,"line":201},[198,1155,258],{"class":257},[198,1157,261],{"class":257},[198,1159,265],{"class":264},[198,1161,269],{"class":268},[198,1163,1164,1166,1168,1170,1172,1174,1176],{"class":200,"line":272},[198,1165,276],{"class":275},[198,1167,135],{"class":268},[198,1169,281],{"class":268},[198,1171,285],{"class":284},[198,1173,134],{"class":288},[198,1175,285],{"class":284},[198,1177,293],{"class":268},[198,1179,1180,1182,1184],{"class":200,"line":296},[198,1181,299],{"class":275},[198,1183,135],{"class":268},[198,1185,304],{"class":268},[198,1187,1188,1190,1192,1194,1196,1198],{"class":200,"line":307},[198,1189,310],{"class":275},[198,1191,135],{"class":268},[198,1193,315],{"class":284},[198,1195,318],{"class":288},[198,1197,285],{"class":284},[198,1199,323],{"class":268},[198,1201,1202,1204,1206,1208,1210,1212],{"class":200,"line":326},[198,1203,329],{"class":275},[198,1205,135],{"class":268},[198,1207,315],{"class":284},[198,1209,68],{"class":288},[198,1211,285],{"class":284},[198,1213,323],{"class":268},[198,1215,1216],{"class":200,"line":342},[198,1217,345],{"class":268},[198,1219,1220],{"class":200,"line":348},[198,1221,351],{"class":268},[71,1223,355],{"id":354},[59,1225,358,1226,135],{},[66,1227,171],{},[189,1229,1230],{"className":248,"code":363,"filename":171,"language":250,"meta":194,"style":194},[66,1231,1232,1250,1254,1264,1278,1292,1300,1334,1338,1356,1376,1380,1418,1446,1474,1502,1506,1510,1530,1540,1554,1558,1562,1568,1574,1582,1586,1590],{"__ignoreMap":194},[198,1233,1234,1236,1238,1240,1242,1244,1246,1248],{"class":200,"line":201},[198,1235,370],{"class":257},[198,1237,373],{"class":268},[198,1239,376],{"class":275},[198,1241,379],{"class":268},[198,1243,383],{"class":382},[198,1245,315],{"class":284},[198,1247,388],{"class":288},[198,1249,391],{"class":284},[198,1251,1252],{"class":200,"line":272},[198,1253,396],{"emptyLinePlaceholder":11},[198,1255,1256,1258,1260,1262],{"class":200,"line":296},[198,1257,258],{"class":257},[198,1259,261],{"class":257},[198,1261,405],{"class":264},[198,1263,269],{"class":268},[198,1265,1266,1268,1270,1272,1274,1276],{"class":200,"line":307},[198,1267,412],{"class":275},[198,1269,135],{"class":268},[198,1271,315],{"class":284},[198,1273,419],{"class":288},[198,1275,285],{"class":284},[198,1277,323],{"class":268},[198,1279,1280,1282,1284,1286,1288,1290],{"class":200,"line":326},[198,1281,428],{"class":275},[198,1283,135],{"class":268},[198,1285,315],{"class":284},[198,1287,435],{"class":288},[198,1289,285],{"class":284},[198,1291,323],{"class":268},[198,1293,1294,1296,1298],{"class":200,"line":342},[198,1295,444],{"class":275},[198,1297,135],{"class":268},[198,1299,304],{"class":268},[198,1301,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,1328,1330,1332],{"class":200,"line":348},[198,1303,453],{"class":275},[198,1305,135],{"class":268},[198,1307,376],{"class":458},[198,1309,461],{"class":268},[198,1311,464],{"class":264},[198,1313,467],{"class":268},[198,1315,470],{"class":264},[198,1317,473],{"class":268},[198,1319,477],{"class":476},[198,1321,480],{"class":268},[198,1323,483],{"class":264},[198,1325,473],{"class":268},[198,1327,285],{"class":284},[198,1329,490],{"class":288},[198,1331,285],{"class":284},[198,1333,495],{"class":268},[198,1335,1336],{"class":200,"line":498},[198,1337,345],{"class":268},[198,1339,1340,1342,1344,1346,1348,1350,1352,1354],{"class":200,"line":503},[198,1341,507],{"class":506},[198,1343,135],{"class":268},[198,1345,512],{"class":257},[198,1347,515],{"class":268},[198,1349,519],{"class":518},[198,1351,522],{"class":268},[198,1353,526],{"class":525},[198,1355,304],{"class":268},[198,1357,1358,1360,1362,1364,1366,1368,1370,1372,1374],{"class":200,"line":531},[198,1359,534],{"class":525},[198,1361,538],{"class":537},[198,1363,541],{"class":525},[198,1365,519],{"class":458},[198,1367,461],{"class":268},[198,1369,548],{"class":264},[198,1371,467],{"class":268},[198,1373,553],{"class":264},[198,1375,556],{"class":268},[198,1377,1378],{"class":200,"line":559},[198,1379,396],{"emptyLinePlaceholder":11},[198,1381,1382,1384,1386,1388,1390,1392,1394,1396,1398,1400,1402,1404,1406,1408,1410,1412,1414,1416],{"class":200,"line":564},[198,1383,534],{"class":525},[198,1385,569],{"class":537},[198,1387,135],{"class":525},[198,1389,575],{"class":574},[198,1391,578],{"class":268},[198,1393,464],{"class":581},[198,1395,584],{"class":268},[198,1397,373],{"class":268},[198,1399,590],{"class":589},[198,1401,135],{"class":525},[198,1403,595],{"class":581},[198,1405,598],{"class":268},[198,1407,601],{"class":589},[198,1409,135],{"class":525},[198,1411,606],{"class":581},[198,1413,609],{"class":268},[198,1415,541],{"class":525},[198,1417,304],{"class":268},[198,1419,1420,1422,1424,1426,1428,1430,1432,1434,1436,1438,1440,1442,1444],{"class":200,"line":616},[198,1421,619],{"class":275},[198,1423,135],{"class":268},[198,1425,373],{"class":268},[198,1427,590],{"class":275},[198,1429,135],{"class":268},[198,1431,630],{"class":476},[198,1433,584],{"class":268},[198,1435,601],{"class":275},[198,1437,135],{"class":268},[198,1439,315],{"class":284},[198,1441,641],{"class":288},[198,1443,285],{"class":284},[198,1445,646],{"class":268},[198,1447,1448,1450,1452,1454,1456,1458,1460,1462,1464,1466,1468,1470,1472],{"class":200,"line":649},[198,1449,652],{"class":275},[198,1451,135],{"class":268},[198,1453,373],{"class":268},[198,1455,590],{"class":275},[198,1457,135],{"class":268},[198,1459,663],{"class":476},[198,1461,584],{"class":268},[198,1463,601],{"class":275},[198,1465,135],{"class":268},[198,1467,315],{"class":284},[198,1469,674],{"class":288},[198,1471,285],{"class":284},[198,1473,646],{"class":268},[198,1475,1476,1478,1480,1482,1484,1486,1488,1490,1492,1494,1496,1498,1500],{"class":200,"line":681},[198,1477,684],{"class":275},[198,1479,135],{"class":268},[198,1481,373],{"class":268},[198,1483,590],{"class":275},[198,1485,135],{"class":268},[198,1487,695],{"class":476},[198,1489,584],{"class":268},[198,1491,601],{"class":275},[198,1493,135],{"class":268},[198,1495,315],{"class":284},[198,1497,706],{"class":288},[198,1499,285],{"class":284},[198,1501,646],{"class":268},[198,1503,1504],{"class":200,"line":713},[198,1505,716],{"class":268},[198,1507,1508],{"class":200,"line":719},[198,1509,396],{"emptyLinePlaceholder":11},[198,1511,1512,1514,1516,1518,1520,1522,1524,1526,1528],{"class":200,"line":724},[198,1513,534],{"class":525},[198,1515,729],{"class":537},[198,1517,541],{"class":525},[198,1519,569],{"class":458},[198,1521,736],{"class":268},[198,1523,739],{"class":458},[198,1525,742],{"class":268},[198,1527,745],{"class":525},[198,1529,304],{"class":268},[198,1531,1532,1534,1536,1538],{"class":200,"line":750},[198,1533,753],{"class":275},[198,1535,135],{"class":268},[198,1537,758],{"class":476},[198,1539,323],{"class":268},[198,1541,1542,1544,1546,1548,1550,1552],{"class":200,"line":763},[198,1543,766],{"class":275},[198,1545,135],{"class":268},[198,1547,315],{"class":284},[198,1549,773],{"class":288},[198,1551,285],{"class":284},[198,1553,323],{"class":268},[198,1555,1556],{"class":200,"line":780},[198,1557,716],{"class":268},[198,1559,1560],{"class":200,"line":785},[198,1561,396],{"emptyLinePlaceholder":11},[198,1563,1564,1566],{"class":200,"line":790},[198,1565,794],{"class":793},[198,1567,304],{"class":268},[198,1569,1570,1572],{"class":200,"line":799},[198,1571,802],{"class":458},[198,1573,323],{"class":268},[198,1575,1576,1578,1580],{"class":200,"line":807},[198,1577,810],{"class":525},[198,1579,813],{"class":458},[198,1581,323],{"class":268},[198,1583,1584],{"class":200,"line":818},[198,1585,716],{"class":268},[198,1587,1588],{"class":200,"line":823},[198,1589,345],{"class":268},[198,1591,1592],{"class":200,"line":828},[198,1593,351],{"class":268},[59,1595,833],{},[71,1597,837],{"id":836},[59,1599,840],{},[189,1601,1602],{"className":191,"code":843,"language":193,"meta":194,"style":194},[66,1603,1604],{"__ignoreMap":194},[198,1605,1606,1608],{"class":200,"line":201},[198,1607,205],{"class":204},[198,1609,852],{"class":208},[59,1611,855],{},[59,1613,1614],{},[66,1615,177],{},[71,1617,863],{"id":862},[59,1619,866],{},[158,1621,1622],{},[85,1623,871,1624,874],{},[66,1625,419],{},[189,1627,1628],{"className":877,"code":878,"language":5,"meta":194,"style":194},[66,1629,1630,1634,1650],{"__ignoreMap":194},[198,1631,1632],{"class":200,"line":201},[198,1633,885],{"class":268},[198,1635,1636,1638,1640,1642,1644,1646,1648],{"class":200,"line":272},[198,1637,891],{"class":890},[198,1639,894],{"class":537},[198,1641,897],{"class":890},[198,1643,900],{"class":268},[198,1645,897],{"class":284},[198,1647,905],{"class":288},[198,1649,908],{"class":284},[198,1651,1652],{"class":200,"line":296},[198,1653,913],{"class":268},[158,1655,1656],{"start":272},[85,1657,918,1658,921],{},[66,1659,177],{},[59,1661,924],{},[189,1663,1664],{"className":191,"code":927,"language":193,"meta":194,"style":194},[66,1665,1666],{"__ignoreMap":194},[198,1667,1668,1670,1672],{"class":200,"line":201},[198,1669,228],{"class":204},[198,1671,936],{"class":208},[198,1673,939],{"class":208},[71,1675,943],{"id":942},[59,1677,946],{},[82,1679,1680,1682,1684,1686],{},[85,1681,951],{},[85,1683,954],{},[85,1685,957],{},[85,1687,960],{},[59,1689,963],{},[71,1691,967],{"id":966},[59,1693,970],{},[59,1695,973],{},[71,1697,977],{"id":976},[59,1699,980],{},[59,1701,983,1702,986],{},[66,1703,419],{},[988,1705,990],{},{"title":194,"searchDepth":272,"depth":272,"links":1707},[1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718],{"id":73,"depth":272,"text":74},{"id":121,"depth":272,"text":122},{"id":152,"depth":272,"text":153},{"id":183,"depth":272,"text":184},{"id":239,"depth":272,"text":240},{"id":354,"depth":272,"text":355},{"id":836,"depth":272,"text":837},{"id":862,"depth":272,"text":863},{"id":942,"depth":272,"text":943},{"id":966,"depth":272,"text":967},{"id":976,"depth":272,"text":977},{"categories":1720,"date":1011,"tags":1721,"readingTime":1722},[1005,1006,1007,1008,1009],[1026,1027,1028,1029],{"text":1018,"minutes":1019,"time":1020,"words":1021},{"title":54,"description":1012},{"loc":1016,"lastmod":1011},"x95EZKYSUtVgweQ0ey6nLOlCv1ggDf-sz0qU-_J_W3w",[1014,1727],{"title":1728,"path":1729,"stem":1730,"children":-1},"Navigating State Management in Vue: Composables, Provide\u002FInject, and Pinia","\u002Fblog\u002Fvue-state-management-composables-provide-inject-pinia","blog\u002Fvue-state-management-composables-provide-inject-pinia",[1732,1737,1742,1747],{"cover":1733,"date":1734,"slug":1735,"title":1736,"to":1735},"blog\u002Fself-host-your-nuxt-app-with-coolify\u002Fog.png","2024-06-25","\u002Fblog\u002Fself-host-your-nuxt-app-with-coolify","Self-Host Your Nuxt App With Coolify",{"cover":1738,"date":1739,"slug":1740,"title":1741,"to":1740},"blog\u002Fuse-shiki-to-style-code-blocks-in-html-emails\u002FBlog_Post__Shiki_Code_Email_envl3j.jpg","2023-02-01","\u002Fblog\u002Fuse-shiki-to-style-code-blocks-in-html-emails","Use Shiki to Style Code Blocks in HTML Emails",{"cover":1743,"date":1744,"slug":1745,"title":1746,"to":1745},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":1748,"date":1749,"slug":1750,"title":1751,"to":1750},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App"]