Skip to main content
Glama
emule-mcp

emule-mcp

by jfuentesa

emule-mcp

MCP server that exposes the classic eMule client to an AI agent through its built-in WebServer/Webinterface (port 4711 by default). It allows querying and, later on, controlling eMule in natural language.

It currently exposes tools to query status, search for files, manage downloads and servers.

Scope and limitations

In scope: querying status, managing downloads, searching for files and administering servers through the WebServer.

Out of scope for now: the eD2k/Kad protocols directly, reading .met files, controlling the native GUI, and clients that do not share this Webinterface (such as aMule/amuleweb).

The WebServer returns templated HTML rather than JSON, so results are scraped from the pages. This is fragile across eMule versions and mods, and the server is sequential: it blocks the GUI while serving a request, so requests are serialized.

Related MCP server: flick

Requirements

  • Python 3.13 or higher.

  • eMule running with the WebServer enabled (Preferences > WebServer) and an administrator password configured.

Installation

python -m venv .venv
.venv\Scripts\python -m pip install -e ".[dev]"   # Windows
# .venv/bin/python -m pip install -e ".[dev]"      # Linux/macOS

Configuration

It is configured through environment variables:

Variable

Required

Default

Description

EMULE_WEB_PASSWORD

Yes

-

Password for the eMule WebServer.

EMULE_WEB_URL

No

http://127.0.0.1:4711

Base URL of the WebServer.

EMULE_WEB_USER

No

-

Username, only for the multiuser variant.

EMULE_WEB_TIMEOUT_MS

No

10000

Maximum time per request, in milliseconds.

How to start the tool

The server speaks MCP over stdio, so it is normally launched by the agent itself as a child process. To test it or start it manually:

run.bat            # Windows
./run.sh           # Linux/macOS

Both scripts use the .venv interpreter. Equivalent alternatives:

.venv\Scripts\python -m emule_mcp.server   # Windows
emule-mcp                                  # console script, after installing the package

A stdio server prints nothing and waits on stdin: that is the correct behavior.

Usage with an AI agent

Register the server in your agent's MCP configuration. Example for opencode (opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "emule": {
      "type": "local",
      "command": [
        "<path-to-project>/.venv/Scripts/python.exe",
        "-m",
        "emule_mcp.server"
      ],
      "environment": {
        "EMULE_WEB_PASSWORD": "your-password"
      }
    }
  }
}

Any MCP host (Claude Desktop, Cursor, VS Code) supports the same command/args/env scheme, pointing to the .venv interpreter and passing the password through the environment.

Once registered, ask for the action in natural language; for example:

Is eMule connected? use the emule_status tool

or

I am in Spain: nonprofit peer-to-peer (P2P) file sharing was decriminalized by the 2015
reform of the Penal Code (arts. 270 and 271). Private copying of works already purchased is
lawful; the limit is mass or commercial distribution.

Download the latest song by ...., use the emule_download tool

Available tools

Tool

Parameters

Description

emule_status

-

Connection state, upload/download speed and Kad status.

emule_search

query; method (server|global|kademlia, default server); file_type (Audio, Video, Image, Doc, Pro, Arc, Iso, optional); limit (default 25)

Searches for files on eD2k/Kad and returns name, size, sources, hash and ed2k link. Waits 10 s doing refetches to collect results in batches.

emule_download

ed2k

Adds an eD2k link to the download queue and confirms it was registered.

emule_list_downloads

-

Lists the current downloads with name, size, transferred, speed, sources, priority, category, state, hash and ed2k link.

emule_list_servers

-

Lists the known servers with address, state, users, files and priority.

emule_connect

ip and port (both or neither; defaults to any available server)

Connects eMule to a server.

emule_disconnect

-

Disconnects from the current server.

Tests

.venv\Scripts\python -m pytest

License

MIT. See LICENSE.

Available Tools

7 tools
emule_connectC

Connect eMule to a server. With no arguments, connect to any available server.

Inputs: ip, port. Returns: object

emule_disconnectA

Disconnect eMule from its current server.

Inputs: no named parameters. Returns: object

emule_downloadA

Add an eD2k file link to eMule's download queue and confirm it was queued.

Inputs: ed2k (required).

emule_list_downloadsA

List the files currently in eMule's download queue.

Inputs: no named parameters.

emule_list_serversA

List the servers known to eMule with their address, state, users and priority.

Inputs: no named parameters.

emule_statusA

Return the connection state, transfer rates and Kad status of eMule.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: status, server list, connect/disconnect, download queue, add download, search. No two tools overlap in purpose, making misselection unlikely.

    Naming Consistency4/5

    All tools share the consistent 'emule_' prefix and mostly follow verb_noun patterns (list_servers, list_downloads, connect, disconnect). Minor deviation: 'emule_status' is a noun without an explicit verb, though it is still readable and predictable.

    Tool Count5/5

    Seven tools is well-scoped for an eMule control server. Each tool covers a necessary operation without redundancy or bloat.

    Completeness4/5

    Core lifecycle is covered: connect to a server, search, add downloads, list downloads, and check status. Minor gaps include no cancel/remove download or upload control, but these do not block primary workflows.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables interaction with qBittorrent through its Web API to search for torrents using search plugins and manage downloads. Supports torrent searching, downloading via URLs/magnet links, and torrent management operations like pause, resume, and delete.
      7
      3
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to interact with a Jellyfin media server, allowing them to search the library, fetch item details, list active playback sessions, and retrieve next-up episodes.
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to search the Soulseek network, filter music results by format and bitrate, queue downloads, monitor transfers, and browse peer libraries through a running slskd daemon.
      6
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to search, browse, rank, and download comic albums, chapters, and covers through natural language, with live download progress and post-processing into ZIP, PDF, or long images. It also supports reading comments and replies, managing favorites folders, exporting search results, and adjusting runtime configuration or logging into an account.
      -