# flatmark

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/flatmark-dev/flatmark  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/flatmark

## Description
Document to Markdown MCP server: PDF, Word, PowerPoint, Excel and HTML, with OCR for large files.

## Tools
Capabilities this server exposes over MCP:

- **convert_document** — Convert a document up to 8 MB to Markdown and return it directly.

Pass the file as base64 in `content_base64`, or as a download link in
`file`, and its name in `filename`. The extension decides the type: .pdf,
.docx, .pptx, .xlsx, .html, .htm or .txt. Returns `markdown` and `meta`
(`filename`, `length` in characters). PDFs come back as plain text
without headings and without OCR. For scans, tables and page numbers,
use `submit_conversion_job`. Works without an API key at the anonymous
rate limit.

Credits: 1 per call.
- **submit_conversion_job** — Queue a document up to 25 MB and 200 pages for conversion with OCR and tables.

Pass the file as base64 in `content_base64`, or as a download link in
`file`, and its name in `filename` (.pdf, .docx, .pptx, .xlsx, .html,
.htm or .txt). Returns `job_id`, `status` and `result_url`. Call
`get_conversion_job` with the `job_id` until `status` is `succeeded` or
`failed`. A conversion may take up to about 2 minutes.

Optional `webhook_url`: a public http or https URL that receives a POST
with the job's final state. The request carries
`X-Appkit-Signature: sha256=<hex>`, an HMAC-SHA256 of the raw body keyed
with the returned `webhook_secret` (shown only once). 3 delivery attempts.

Requires an API key. The credits are refunded if the job fails. The
uploaded file is deleted when the job finishes. Results are kept for
7 days after submission.

Credits: 10 per call.
- **get_conversion_job** — Check a queued conversion job you submitted.

Returns `job_id` and `status` (`queued`, `running`, `succeeded` or
`failed`). A succeeded job includes the `markdown` when it is under
100 KB, otherwise a `result_url` to download it (also free). A failed job
includes `error`, one sentence with the reason. Results are deleted
7 days after submission. An expired result is reported in `error`.
Requires an API key.

Credits: free. This tool is not metered.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "flatmark": {
    "url": "https://flatmark.dev/mcp"
  }
}
```

## Documentation

## What flatmark does

flatmark exposes document-to-Markdown conversion through MCP and a hosted REST API. It accepts PDF, Word, PowerPoint, Excel, HTML, and plain-text files. Input can be supplied as base64 content or as a downloadable file URL, with the filename used to determine the format.

The service provides two conversion paths. `convert_document` handles files up to 8 MB and returns Markdown directly. `submit_conversion_job` accepts files up to 25 MB and 200 pages, then processes them asynchronously with OCR and table detection. The hosted service runs in Germany.

## How it works

Connect an MCP client to `https://api.flatmark.dev/mcp/` using the streamable-HTTP transport. The anonymous tier can be used without an API key, subject to its lower rate limit. Supplying an API key raises the available limits and is required for queued conversions.

For an immediate conversion, call `convert_document` with `content_base64` or `file`, plus `filename`. The response contains `markdown` and metadata including the filename and character length. Immediate PDF conversion returns plain text without headings or OCR.

For scanned files, table extraction, page numbers, or files above 8 MB, call `submit_conversion_job`. Save the returned `job_id`, then call `get_conversion_job` until the status is `succeeded` or `failed`. A public webhook can receive the final state instead. Webhook requests include an HMAC-SHA256 signature, and the returned webhook secret is shown only once.

## Setup and configuration

Add the hosted endpoint to an MCP client that supports remote MCP connections. The documented configurations cover Claude Code, Cursor, Windsurf, Cline, and Claude Desktop; a Gemini CLI extension is also included in the project.

Claude Code can add the endpoint with its HTTP transport command. Other documented clients use an MCP server entry whose URL is `https://api.flatmark.dev/mcp/`. Set `FLATMARK_API_KEY` when using an API key, particularly for queued jobs. Anonymous access is available for the lower-limit conversion path.

## Tools and capabilities

- `convert_document`: Convert a file up to 8 MB and return Markdown in the same response. It costs one credit per call.
- `submit_conversion_job`: Queue a file up to 25 MB and 200 pages with OCR and table detection. It costs 10 credits per call.
- `get_conversion_job`: Retrieve job status and results without a metered charge.
- Support PDF, DOCX, PPTX, XLSX, HTML, HTM, and TXT inputs.
- Download large successful results from a returned `result_url`; smaller results are included as Markdown.

## Limitations and notes

Immediate conversion is limited to 8 MB and does not perform OCR or preserve PDF headings. Queued conversion can take about two minutes and requires an API key. Queued uploads are deleted after processing, while results remain available for seven days after submission. Failed queued jobs refund their credits. Webhook delivery is attempted three times, and the callback must use a public HTTP or HTTPS URL.

_Full upstream README: https://allmcps.com/mcp/flatmark/readme_

