Skip to main content
Glama

pure.md MCP server

Official
by puremd

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

NameRequiredDescriptionDefault
urlYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "url": { "type": "string" } }, "required": [ "url" ], "type": "object" }

Implementation Reference

  • 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, }; } });
  • 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 }) => {

Other Tools

Related 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