Skip to main content
Glama

MCP Server MQL5

An MCP Server for MQL5 development, designed to integrate with Large Language Models (LLMs) like Claude. It provides intelligent access to the official MQL5 documentation, allowing generic AI models to become expert MQL5 coding assistants.

python uv Ruff checked-with-mypy

Features

  • πŸ“š Smart Documentation Search: Queries the official MQL5 search API to find the most relevant documentation pages.

  • 🧠 Context-Aware Extraction: Scrapes and cleans HTML content from MQL5.com, stripping unnecessary elements (scripts, styles, navs) to provide LLMs with pure, token-efficient context.

  • ⚑ High Performance: Implements intelligent caching to prevent redundant network requests and improve response times.

  • πŸ›‘οΈ Rate Limiting: Built-in rate limiter ensures polite usage of MQL5.com resources, preventing IP bans.

  • πŸ”„ Robust Networking: Handles network errors gracefully with automatic user-agent rotation and retry logic.

Related MCP server: DocumentSearch MCP

Installation

We recommend using uv for dependency management, but standard pip is also supported.

To install efficiently with uv:

# Clone the repository
git clone https://github.com/jhontd03/mcp-server-mql5.git
cd mcp-server-mql5

# Install dependencies
uv sync

Using pip

pip install .

Configuration

Claude Code (CLI)

To add this server to Claude Code, run the following command in your terminal (replacing C:\path\to\mcp-server-mql5 with your actual absolute path):

claude mcp add mql5 -- uv --directory "C:\path\to\mcp-server-mql5" run mcp-server-mql5

Note: On Windows, ensure you use the absolute path to the repository.

Antigravity

To use this server with Antigravity or other MCP clients, add the following configuration to your mcp_config.json:

{
  "mcpServers": {
    "mql5": {
      "command": "uv",
      "args": [
        "--directory",
        "C:/path/to/mcp-server-mql5",
        "run",
        "mcp-server-mql5"
      ]
    }
  }
}

Note: Replace C:/path/to/mcp-server-mql5 with the actual absolute path to your cloned repository.

Development

This project uses modern Python development tools to ensure code quality.

Setup

# Install dependencies including dev tools
uv sync

Quality Assurance

We enforce code quality using Ruff (linting/formatting) and MyPy (static type checking).

Set up Pre-commit Hooks:

This ensures checks run automatically before every commit.

uv run pre-commit install

Run Checks Manually:

# Run all pre-commit hooks on all files
uv run pre-commit run --all-files

Testing

Run the test suite with pytest:

uv run pytest

Components

  • server.py: Main MCP server entry point.

  • core/scraper.py: BeautifulSoup-based HTML extractor.

  • core/search.py: Logic for parsing MQL5 search API results.

  • core/web_client.py: Async HTTP client with aiohttp.

  • core/utils.py: Rate limiters and logging utilities.

License

Distributed under the MIT License. See LICENSE for more information.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search and retrieve 1C:Enterprise 8.3 syntax documentation, including quick references, detailed syntax info, and object members, through MCP tools backed by an Elasticsearch index.
      5
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants to search for and retrieve authoritative C and C++ documentation from cppreference.com, returning sanitized, paginated Markdown content.
      26 npm
      3
      MIT