unblock-url
Access blocked web content by converting URLs into markdown format with the MCP server, enabling AI clients to retrieve and display information securely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
Implementation Reference
- src/index.ts:25-41 (handler)Inline handler for the "unblock-url" tool: proxies the fetch request through pure.md service using API key, returns markdown content as text or error message.server.tool("unblock-url", { url: z.string() }, async ({ url }) => { try { const response = await fetch(`https://pure.md/${url}`, { headers: { "x-puremd-api-token": PUREMD_API_KEY }, }); const markdown = await response.text(); return { content: [{ type: "text", text: markdown }], isError: false, }; } catch (error) { return { content: [{ type: "text", text: (error as Error).message }], isError: true, }; } });
- src/index.ts:25-25 (schema)Input schema for "unblock-url" tool: requires a 'url' string parameter validated by Zod.server.tool("unblock-url", { url: z.string() }, async ({ url }) => {
- src/index.ts:25-25 (registration)Registration of the "unblock-url" tool on the MCP server instance.server.tool("unblock-url", { url: z.string() }, async ({ url }) => {