Skip to main content
Glama
barateza

Plesk Extensions Guide MCP Server

by barateza

Plesk Extensions Guide MCP Server

A Model Context Protocol (MCP) server that provides semantic search capabilities over the Plesk Extensions Guide documentation using Retrieval-Augmented Generation (RAG).

Overview

This MCP server indexes and searches Plesk extension development documentation using vector embeddings. It allows AI assistants and applications to retrieve relevant information from the Plesk Extensions Guide through natural language queries.

Features

  • Semantic Search: Search documentation using natural language queries

  • Vector Embeddings: Uses OpenRouter's text-embedding-3-small model for intelligent document matching

  • ChromaDB Storage: Efficient vector database for fast retrieval

  • Automatic Documentation Download: Easy setup with automated documentation fetching

Prerequisites

  • Python 3.12 or higher

  • pip package manager

  • OPENROUTER_API_KEY environment variable (for embeddings)

Installation

  1. Clone the repository:

    git clone https://github.com/barateza/mcp-plesk-extension-guide.git cd mcp-plesk-extension-guide
  2. Create a virtual environment:

    python -m venv .venv source .venv/bin/activate # macOS/Linux # OR .venv\Scripts\activate # Windows
  3. Install dependencies:

    pip install -e .

Setup

1. Download Documentation

The MCP server requires the Plesk Extensions Guide documentation. Download and extract it using the provided script:

python scripts/download_docs.py

This script will:

  • Download the documentation ZIP from Plesk's documentation server

  • Extract it to the html/ folder

  • Create the storage/ directory for the vector database

2. Configure API Key

Set your OpenRouter API key as an environment variable:

export OPENROUTER_API_KEY="your-api-key-here"

Or add it to a .env file in the project root (this file should not be committed to version control).

Usage

The MCP server exposes two main tools for interacting with the Plesk Extensions Guide:

1. search_extensions_guide

Search the indexed documentation with a semantic query.

Parameters:

  • query (string): Your search query in natural language

Example:

Query: "How do I create a custom UI form for my extension?"

2. index_documentation

Scan and index all documentation files. This is called automatically on first run, but can be called again to re-index.

Parameters: None

Example:

Index the html/ folder into the vector database

Configuration

The server uses the following environment variables:

Variable

Description

Required

OPENROUTER_API_KEY

API key for OpenRouter embeddings service

Yes

CHROMA_DB_IMPL

ChromaDB implementation (default: duckdb+parquet)

No

Architecture

  • server.py: FastMCP server implementation with indexing and search tools

  • main.py: Entry point for running the server

  • scripts/download_docs.py: Documentation download utility

  • html/: Extracted Plesk Extensions Guide documentation (created after setup)

  • storage/: Vector database storage (created automatically on first run)

Development

See CONTRIBUTING.md for development guidelines and how to contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

For more information about Plesk extension development, visit:

Support

If you encounter any issues:

  1. Ensure Python 3.12+ is installed

  2. Verify your OPENROUTER_API_KEY is set correctly

  3. Run python scripts/download_docs.py again to refresh documentation

  4. Check that html/ and storage/ directories were created successfully

For bugs or feature requests, please open an issue on GitHub.

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barateza/mcp-plesk-extension-guide'

If you have feedback or need assistance with the MCP directory API, please join our Discord server