MCP · fetch_markdown
Fetch readable Markdown
Fetches one public HTTP/HTTPS page and returns its primary readable content as Markdown. Use this for article or documentation body text without page chrome. It does not run JavaScript; use a browser tool for client-rendered pages. Native text/markdown responses are preserved. Limit: 8 s, 5 redirects, 768 KiB remote body, 150k output characters.
When to use it
Fetches one public HTTP/HTTPS page and returns its primary readable content as Markdown. Use this for article or documentation body text without page chrome. It does not run JavaScript; use a browser tool for client-rendered pages. Native text/markdown responses are preserved.
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 8,
"maxLength": 2048,
"description": "Absolute public HTTP or HTTPS URL without embedded credentials."
},
"max_chars": {
"default": 100000,
"type": "integer",
"minimum": 1000,
"maximum": 150000
}
},
"required": [
"url",
"max_chars"
],
"additionalProperties": false
}Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"requested_url": {
"type": "string"
},
"final_url": {
"type": "string"
},
"status": {
"type": "integer"
},
"title": {
"type": [
"string",
"null"
]
},
"markdown": {
"type": "string"
},
"content_type": {
"type": "string"
},
"source_format": {
"enum": [
"html",
"markdown",
"plain_text"
]
},
"redirects": {
"type": "array",
"items": {
"type": "object"
}
},
"bytes_read": {
"type": "integer"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"requested_url",
"final_url",
"status",
"title",
"markdown",
"content_type",
"source_format",
"redirects",
"bytes_read",
"truncated"
]
},
"meta": {
"type": "object",
"properties": {
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer"
},
"limits": {
"type": "object"
}
},
"required": [
"request_id",
"duration_ms"
]
}
},
"required": [
"ok",
"data",
"meta"
],
"additionalProperties": false
}REST example
curl -X POST https://plainport.exportitnow.workers.dev/api/v1/fetch-markdown \
-H "content-type: application/json" \
-d '{"url":"https://example.com"}'Example result
{
"ok": true,
"data": {
"final_url": "https://example.com/",
"title": "Example Domain",
"markdown": "# Example Domain\n\n…",
"truncated": false
},
"meta": {
"request_id": "018f…",
"duration_ms": 12
}
}Limit
8 s, 5 redirects, 768 KiB remote body, 150k output characters