Skip to main content
Glama
dresseurmonster2-oss

mdisbetter MCP server

mdisbetter MCP server

An MCP server that lets an agent convert files. It exposes the mdisbetter.com converter over stdio: 3649 proven conversions across 162 input formats. Images, documents, ebooks, audio, video, office files, fonts, archives, data formats, subtitles and bibliographies. Eleven families, in and out, not only to PDF.

Two tools, and that is the whole surface:

Tool

What it does

convert_file

Takes a path and an output format, writes the converted file, returns its path.

list_conversions

With an extension, the output formats proven for it. Without, every input extension accepted.

What it does not do

This list is here because the opposite claim is easy to make by accident. The server has no batch mode, no webhooks, no job polling, no queue, no streaming, no URL input, and no CLI beyond the stdio entry point. It converts one local file per call, and waits for the answer.

It used to say "no audio or video conversion" here. That stopped being true when the conversion table was resynchronised: audio and video are served like every other family. Video that has to be re-encoded is capped at 120 seconds of source, because a re-encode costs real CPU; a container change that keeps the codecs is a stream copy and has no such limit.

Related MCP server: ConvertAgent

Requirements

  • Node.js 20 or later.

  • An mdisbetter.com API key. Keys start with mdb_sk_.

Create one from your dashboard, under API keys. The plaintext key is shown once and never again: only its hash is stored, so nobody can recover it for you, us included. Store it before closing the panel.

Conversions cost credits from the same balance the website spends. There is no separate quota for programmatic use.

Install

git clone https://github.com/dresseurmonster2-oss/mdisbetter-mcp.git
cd mdisbetter-mcp
npm install

Or run it without cloning:

npx -y github:dresseurmonster2-oss/mdisbetter-mcp

Configure

Two environment variables, one of them optional.

Variable

Required

Meaning

MDISBETTER_API_KEY

yes

Your key, starting with mdb_sk_.

MDISBETTER_BASE_URL

no

Defaults to https://mdisbetter.com. Point it at a preview deployment to test against one.

The key is read from the environment and from nowhere else. It is never a tool argument, so no prompt can talk the model into revealing it, and the server never writes it to a file.

Wire it into a client

Most MCP clients read a JSON block like this one. The path is wherever you cloned the repository.

{
  "mcpServers": {
    "mdisbetter": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/src/index.js"],
      "env": {
        "MDISBETTER_API_KEY": "mdb_sk_your_key_here"
      }
    }
  }
}

Restart the client. list_conversions and convert_file appear in its tool list.

The tools

list_conversions

// every input format the converter accepts
{ "name": "list_conversions", "arguments": {} }

// what a .docx can become
{ "name": "list_conversions", "arguments": { "extension": "docx" } }

The extension may be written with or without its dot, in any case. .DOCX, docx and .docx are the same question.

An extension the converter cannot read is refused, rather than answered with an empty list.

convert_file

{
  "name": "convert_file",
  "arguments": {
    "path": "/home/me/report.docx",
    "target": "pdf"
  }
}

Argument

Required

Meaning

path

yes

The file to convert, on the machine running this server.

target

yes

Output format as a bare extension: pdf, png, md.

output_path

no

Where to write the result. Overwrites if it exists.

Without output_path, the result lands beside the input with the new extension: report.docx becomes report.pdf in the same directory. If that name is taken the server writes report-1.pdf instead. It never overwrites a file it was not pointed at, and it never touches the input.

Files are capped at 150 MB, which is what the conversion engine accepts.

Under 4 MB the file travels in the request itself, which is one round trip. Above it, the server uploads to storage first and sends only the address, because the platform hosting the API caps a request body AND a response body at 4.5 MB. Measured on 31/08/2026 in 100 KB steps: 4.2 MB passes, 4.3 MB returns a 413 raised before the function even runs. This README claimed 25 MB until that day, a figure taken from the engine and never reachable through the transport.

A pair that is not in the table is refused before anything is sent, and the refusal lists the targets that would work:

.png to .docx is not a proven conversion. Proven targets for .png (28):
avif, bmp, dds, eps, gif, hdr, ico, jng, jp2, jpeg, jpg, miff, pbm, pcx,
pdf, pgm, pnm, ppm, ps, psd, ras, sgi, tga, tif, tiff, wbmp, webp, xpm.

When the file does not come back

The server translates each answer rather than passing along a bare status code.

Situation

What the agent is told

Out of credits

How many credits the conversion costs, how many remain, how many are missing, and the top-up page. This is not a fault: the account is simply out of credits, and the conversion did not happen.

Key rejected

The key is missing, invalid, or revoked. Set MDISBETTER_API_KEY.

File refused

The pair is proven, so the file itself is the problem: contents that do not match the extension, or something the engine could not read.

File too large

Over the 150 MB the engine accepts.

Converter at capacity

The service sheds load on purpose rather than degrading. Nothing broke, nothing was charged, retry in a few seconds.

Service unavailable or timed out

Said plainly, and no file is written.

Nothing is ever written to disk unless a converted file actually came back with bytes in it.

Where the conversion table comes from

src/formats.js is a copy of the table the website itself uses. It is generated, not written by hand, and it contains only pairs that a probe converted for real and then read back, checking the output was the format it claims to be. Formats an engine merely advertises do not make it in.

Do not edit it. Regenerate it in the main repository:

python scripts/generer-formats.py

That rewrites site/content/formats.js from the probe results, and the file is then copied here unchanged, keeping its original header.

The table maps each pair to one of four endpoints, chosen by what serves that pair best rather than by the file's family:

Endpoint

Pairs

Typically

/api/convert-image

1189

image to image

/api/convert-media

1117

audio and video

/api/convert-document

895

markup and document formats

/api/convert-ebook

298

ebook and reader formats

/api/convert-office

41

office documents, spreadsheets and slides

/api/convert-archive

30

archives: ZIP, TAR and its compressions, 7z

/api/convert-subtitle

25

subtitles: SRT, VTT, ASS, SSA, LRC and TTML

/api/convert-data

24

data formats: JSON, YAML, TOML, CSV, TSV, NDJSON

/api/convert-font

18

fonts: TrueType, OpenType, WOFF and WOFF2

/api/convert-bibliography

12

bibliographies: BibTeX, BibLaTeX, CSL JSON, RIS and EndNote XML

These counts are checked against the table by test/readme.test.mjs. The table itself is generated from probes against the real engine, so a stale number here means the README was not updated, never that the table is wrong.

Several extensions could be served by more than one of these. A .docx to PDF goes through the office endpoint because that keeps the layout, while .docx to Markdown goes through the document endpoint because that keeps the text faithful. The caller never has to know: it names a file and a target format.

Tests

npm test

The suite runs offline. It spawns the server as a real process and speaks MCP to it over stdio, checks the routing of every one of the 3649 pairs, checks that an unproven pair is refused before any request is made, and checks the wording of each answer, including that running out of credits is never described as a failure.

The tests do not perform a real conversion. That needs a key and a credit balance, neither of which belongs in a test suite.

License

MIT. See LICENSE.

The converter itself is a hosted service; this repository is the connector that reaches it. Conversions cost credits from your mdisbetter.com balance.

Available Tools

2 tools
convert_fileA

Convert one local file to another format and write the result next to it. Covers 3649 proven conversions across 162 input formats (images, documents, ebooks, and office files to PDF). Call list_conversions first if you are unsure a pair is supported. One file per call: there is no batch mode.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file to convert, on the machine running this server.
targetYesOutput format, as a bare extension such as "pdf", "png" or "md".
output_pathNoOptional. Where to write the result. Overwrites if it exists. Omitted, the result goes beside the input with the new extension, and an existing file is never overwritten.

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the behavioral disclosure burden. It discloses the output location ('next to it'), the single-file constraint, no batch mode, and the limited-but-large set of proven conversions. It does not mention error behavior for unsupported formats, but it preempts that with the pointer to list_conversions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no fluff: purpose and output location first, then capability scope, then a usage instruction and constraint. Every sentence earns its place and the key operational detail is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter tool with no output schema and no annotations, the description covers the essential operational constraints, points to the sibling tool for verification, and pairs well with the fully documented schema. It could mention what happens on failure or unsupported pairs, but the list_conversions pointer mitigates that gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all three parameters including the 'bare extension' format and overwrite behavior. The description adds context about supported format families and one-file-per-call, but it does not add significant parameter-level meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: convert one local file to another format and write the result next to it. It also gives concrete scope (3649 conversions across 162 input formats) and clearly separates itself from the sibling list_conversions by focusing on performing a conversion rather than enumerating supported pairs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells the agent to call list_conversions first when unsure whether a pair is supported, and warns that there is no batch mode and only one file per call. This gives clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_conversionsA

Ask what this converter can do. With an extension, returns the output formats proven for it. With no argument, returns every input extension accepted.

ParametersJSON Schema
NameRequiredDescriptionDefault
extensionNoOptional input extension, with or without the dot, such as "docx" or ".png".

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden of behavioral disclosure. It explains the conditional behavior based on the argument, which is useful, but it doesn't mention whether this is a read-only operation, whether it can fail for unknown extensions, or what the response format looks like. The core behavior is transparent enough for a listing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core purpose, and every clause earns its place. The conditional behavior is explained efficiently without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple listing tool with one optional parameter and no output schema, the description covers the essential behavior. It could mention what happens with an unknown extension or clarify the return format, but the tool is simple enough that the description is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents the extension parameter well. The description adds the key semantic detail that the parameter is optional and changes the output, which is valuable, but it doesn't add much beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists conversion capabilities: with an extension it returns proven output formats, and with no argument it returns all accepted input extensions. It distinguishes itself from convert_file by focusing on discovery rather than execution, though it doesn't explicitly name the sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the two calling modes (with and without an extension) and what each returns, giving an agent clear context for when to use it. It doesn't explicitly state when not to use it or mention convert_file as an alternative, but the behavior is well-specified.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 2 tool updatesv0.1.0
    • First observedconvert_file
    • First observedlist_conversions

TDQS

A4.2/5.0

Scored across 2 tools

Disambiguation5/5

convert_file and list_conversions have clearly distinct purposes: one performs an action and the other provides capability information. There is no overlap or ambiguity between them.

Naming Consistency5/5

Both tools follow the same verb_noun snake_case pattern: convert_file and list_conversions. The naming is consistent and predictable.

Tool Count4/5

Two tools is minimal, but it fits the server's narrow purpose: querying supported conversions and performing a conversion. It is slightly under the typical well-scoped range but not overly thin.

Completeness5/5

The server fully covers its domain: list_conversions tells agents what is possible, and convert_file performs the conversion. There are no obvious dead ends for the stated single-file conversion workflow.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables document conversion between various formats (Markdown, DOCX, HTML, PDF, etc.) using Pandoc, allowing AI agents to request conversions via natural language.
    7
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    A local file conversion server supporting audio, video, image, document, and specialized formats via Model Context Protocol. It enables batch and single-file conversions without cloud dependencies.
    6 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    File conversion for AI agents: office docs to PDF, PDF to Word, document interchange (Markdown/HTML/EPUB/LaTeX), and audio/video transcodes via the hushvert hosted API. Tools: convert_file, convert_poll, list_formats, check_usage.
    4
    37 npm
    1
    MIT