Skip to main content
Glama
puremd

pure.md MCP server

Official
by puremd

unblock-url

Access web content in markdown format by unblocking URLs for AI clients like Cursor, Windsurf, and Claude Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • Handler function for the 'unblock-url' tool: fetches the given URL through the pure.md proxy service using the API key from environment, 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, }; } });
  • Input schema for 'unblock-url' tool: requires a 'url' string.
    server.tool("unblock-url", { url: z.string() }, async ({ url }) => {
  • src/index.ts:25-41 (registration)
    Registration of the 'unblock-url' tool on the MCP server with schema and handler.
    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, }; } });
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/puremd/puremd-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server