🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@enconvert/mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enconvert/mcp

MCP server for the Enconvert file conversion API — convert URLs to PDF, screenshot, or markdown, and convert document and image files, directly from Claude Code, Cursor, Windsurf, and Claude Desktop.

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
426
238.1%
Maintainers
1
Weekly downloads
 
Created
Source

@enconvert/mcp

Official Model Context Protocol (MCP) server for Enconvert — lets any MCP-compatible AI agent (Claude Code, Cursor, Windsurf, Claude Desktop, Continue, etc.) convert files and URLs through a single command.

What you get

Five tools, optimized for reliable LLM tool selection:

ToolWhat it does
convert_url_to_pdfRender any live web page as a PDF
convert_url_to_screenshotCapture a full-page PNG screenshot of any URL
convert_url_to_markdownExtract clean GFM Markdown (with YAML frontmatter metadata) from any article — returns the text inline, ideal for summarizing, RAG, or notes
convert_documentConvert DOCX, XLSX, PPTX, ODT, Pages, Numbers, EPUB, HTML, MD, CSV, JSON, XML, YAML, TOML to PDF (or between each other)
convert_imageConvert between JPEG, PNG, SVG, HEIC, WebP (handy for iPhone HEIC → WebP)

Requirements

Install

Pick your client below. All recipes use npx -y @enconvert/mcp@latest — no local install needed.

Claude Code (macOS / Linux)

claude mcp add enconvert -s user \
  -e ENCONVERT_API_KEY=sk_live_your_key \
  -- npx -y @enconvert/mcp@latest

Claude Code (native Windows)

Native Windows requires wrapping npx in cmd /c — otherwise the command hangs.

claude mcp add enconvert -s user `
  -e ENCONVERT_API_KEY=sk_live_your_key `
  -- cmd /c npx -y @enconvert/mcp@latest

Using WSL? Use the macOS/Linux recipe instead — no cmd /c needed inside WSL.

Cursor

Edit ~/.cursor/mcp.json (create it if missing):

{
  "mcpServers": {
    "enconvert": {
      "command": "npx",
      "args": ["-y", "@enconvert/mcp@latest"],
      "env": {
        "ENCONVERT_API_KEY": "sk_live_your_key"
      }
    }
  }
}

On native Windows — replace the command and args:

{
  "mcpServers": {
    "enconvert": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@enconvert/mcp@latest"],
      "env": {
        "ENCONVERT_API_KEY": "sk_live_your_key"
      }
    }
  }
}

Restart Cursor after editing.

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json — same JSON shape as Cursor. On Windows, use the cmd /c variant above.

Claude Desktop

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Same JSON shape as Cursor. Restart Claude Desktop after editing.

Try it

Once installed, try any of these in a fresh prompt:

The agent picks the right tool automatically — descriptions are tuned so summarize-an-article hits convert_url_to_markdown (cheapest on tokens) rather than convert_url_to_pdf.

Configuration

All configuration is via environment variables.

VariableRequiredDefaultPurpose
ENCONVERT_API_KEY✅ YesYour Enconvert API key
ENCONVERT_BASE_URLNohttps://api.enconvert.comOverride for staging or self-hosted Enconvert

How it works

The server is a thin MCP wrapper around the official @enconvert/node-sdk — which owns all HTTP, auth, timeout (5 min), and job-polling fallback logic. Each tool handler maps MCP input to an SDK call and returns a consistent response:

  • a text summary with the presigned download URL and metadata
  • a structuredContent block with typed fields (presignedUrl, objectKey, filename, fileSize, conversionTimeSeconds, savedTo?)
  • a resource_link to the local file when save_to is provided
  • for convert_url_to_markdown, the extracted Markdown inlined in the response (up to ~256 KB) so agents can immediately read it without a second HTTP fetch

Troubleshooting

npx hangs on native Windows Use cmd /c npx … — the cmd shim handles Windows path resolution that bare npx does not.

Authentication failed: Invalid or missing API key Double-check ENCONVERT_API_KEY is set in the MCP client's env block, not just your shell. MCP servers launched by Claude Code / Cursor / Windsurf only see the env vars you pass via -e or the config file.

Tool call times out Some conversions (Playwright-rendered URL → PDF of a heavy page) can take 15–30 s, and the SDK waits up to 5 min. If your client has a shorter timeout, raise it.

"Relative path" error on convert_document / convert_image Pass an absolute path (e.g., /Users/me/file.docx or C:\Users\me\file.docx), or pass an http(s):// URL. MCP servers have no reliable working directory.

How it depends on the Node SDK

This MCP server is a thin wrapper around @enconvert/node-sdk, which owns all HTTP, authentication, timeout, retry, and job_id polling-on-500 logic. New SDK releases automatically benefit the MCP server.

When publishing a new version of the MCP, just run npm publish --access public — the SDK is now a normal published dep, no local-link dance required.

License

MIT

Keywords

mcp

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts