Use Leafmelt MCP with OpenAI Codex CLI
PDF/Word/Excel/HTML to clean Markdown for LLMs and RAG. Keys $19/mo; 50 free calls a day.
Remote MCP server (Streamable HTTP), nothing to install. Free: 50 free calls a day · Paid: Keys $19/mo
Set it up
- Open ~/.codex/config.toml (create it if needed).
- Add the [mcp_servers] table shown and save.
- Start Codex; the server's tools are available to the agent.
- Ask a question the tools can answer.
Add to ~/.codex/config.toml:
[mcp_servers.leafmelt]
url = "https://leafmelt.cybermaxtools.com/mcp?via=use-with-codex"With a paid key:
[mcp_servers.leafmelt]
url = "https://leafmelt.cybermaxtools.com/mcp?via=use-with-codex"
env_http_headers = { "x-api-key" = "CYBERMAX_API_KEY" }env_http_headers maps the header to an environment variable name, so the key stays in your environment.
- ~/.codex/config.toml (or .codex/config.toml in a trusted project)
Tools you get
Endpoint checked 2026-10-09: https://leafmelt.cybermaxtools.com/mcp answered an MCP initialize (protocol 2025-06-18) and tools/list with 2 tools, all marked read-only. No key was used and no tool was called.
| Tool | What it does | Required inputs |
|---|---|---|
convert_to_markdown | Convert 1-5 documents (PDF, Word .docx, Excel .xlsx/.xls, OpenDocument, Apple Numbers, CSV, HTML, XML) to clean Markdown for reading or RAG. Pass public URLs in urls, or files as [{name, base64}]. Returns markdown, format, characters, approxTokens and truncated per document. Not for images or scanned PDFs (no OCR). | none |
supported_formats | List the document formats Leafmelt converts, with file extensions and MIME types. | none |
Test the endpoint from a terminal
This lists the tools without a key and without calling any of them:
curl -s https://leafmelt.cybermaxtools.com/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'If it does not work
- Each server is its own [mcp_servers.<name>] table; keep the name to letters, digits, dashes and underscores.
- For a fixed header value instead of an environment variable, Codex also documents http_headers.
- The free tier has a daily limit (see the pricing line above); a paid key raises it.
Leafmelt in other clients
CursorVS Code (GitHub Copilot)Claude CodeClaude Desktop and claude.aiWindsurf (Devin Desktop)ClineGemini CLI
More MCP servers for OpenAI Codex CLI
AfterwrenAwardtide Recompete RadarBonafido: Business Domain Verification APICitewrenCommonkite: Free Image Search API, Creative Commons & CC0CyberMax DataDomainDNADutyfinchFeedpeck: RSS Feed Finder & Reader by WebsiteFieldwrightFigurewellHaulrollHireHeatInsidewellKevscopeLinkheftLogolark: Company Logo API & Favicon Finder by DomainMailvett: Email Validation API for AI AgentsNamewhereOrbitwrenPinloft: Batch Geocoder — Address to Lat/Long + Census FIPSPricewickPrintwren: HTML to PDF and URL to PDF (real Chrome)RecallrollShiftmoorSumbloomSwellmeter TrendingZiplore: US ZIP Code API (county, time zone, demographics, radius)