MCP ExplorerExplorer

Vite Plugin Vitepress Mcp

@Hal-Spidernighton a year ago
1 MIT
FreeCommunity
AI Systems
A Vite plugin to use VitePress as an MCP server.

Overview

What is Vite Plugin Vitepress Mcp

vite-plugin-vitepress-mcp is a Vite plugin that extends VitePress to function as an MCP server, allowing users to launch an MCP server easily by integrating it into their VitePress configuration.

Use cases

Use cases include setting up a local documentation server for a software project, creating a searchable knowledge base, or developing a technical documentation site that requires fast and efficient access to information.

How to use

To use vite-plugin-vitepress-mcp, install it via npm with the command ‘pnpm add -D vite-plugin-vitepress-mcp’. Then, import the MCPPlugin in your VitePress config file and add it to the plugins array within the vite configuration.

Key features

Key features include easy integration with VitePress, the ability to configure the server port, and support for local search functionality within the VitePress documentation.

Where to use

vite-plugin-vitepress-mcp is ideal for developers and teams working on documentation sites, technical blogs, or any project that requires a documentation server with search capabilities.

Content

Vite Plugin VitePress MCP

npm

https://www.npmjs.com/package/vite-plugin-vitepress-mcp

Description

This Vite plugin is an extension plugin for using VitePress as an MCP server.
By adding the plugin to the VitePress config, you can launch the MCP server.

Install

pnpm add -D vite-plugin-vitepress-mcp

Example

import { defineConfig } from "vitepress";
import { MCPPlugin } from "vite-plugin-vitepress-mcp";

export default defineConfig({
  title: "VitePress MCP Server",
  description: "Vitepress Search MCP",
  themeConfig: {
    search: {
      provider: "local",
      options: {}, //INSERT THIS
    },
    ...
  },
  vite: {
    plugins: [MCPPlugin({ port: 4000 })], //INSERT THIS
  },
});

Tools

name description
search_vitepress_docs Search VitePress Documents For This Product. Extract up to five keywords each English and native language, and define all of them as single words. e.g. Vitepress, API, Specification,Extensions etc.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers