Skip to main content
Glama
yantrix-ai

@praveen030686/data-apis-mcp

web_extract_structured

Extract structured data including text, tables, JSON-LD, and metadata from any URL. Uses USDC micropayments on Base network for processing.

Instructions

Full structured extraction: text, tables, JSON-LD, metadata from any URL. Costs $0.05 USDC per request via x402 on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to extract structured data from

Implementation Reference

  • The handler function for web_extract_structured which calls the structured extraction API.
    async ({ url }) => {
      const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/structured`, { url });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • src/index.ts:336-346 (registration)
    Registration of the web_extract_structured tool with its schema and description.
    server.registerTool(
      "web_extract_structured",
      {
        title: "Extract Structured Data",
        description: `Full structured extraction: text, tables, JSON-LD, metadata from any URL.
    Costs $0.05 USDC per request via x402 on Base.`,
        inputSchema: {
          url: z.string().url().describe("URL to extract structured data from"),
        },
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      },

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/yantrix-ai/x402-apis-mcp-server'

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