Skip to main content
Glama
yantrix-ai

@praveen030686/data-apis-mcp

web_extract_contacts

Extract emails, phone numbers, and social media links from web pages to collect contact information from any URL.

Instructions

Extract emails, phone numbers, and social media links from any web page. Costs $0.03 USDC per request via x402 on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to extract contacts from

Implementation Reference

  • The async handler function that calls the web_extract_contacts API.
    async ({ url }) => {
      const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/contacts`, { url });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • src/index.ts:302-317 (registration)
    Tool registration for web_extract_contacts including title, description, and input schema.
    server.registerTool(
      "web_extract_contacts",
      {
        title: "Extract Contacts from URL",
        description: `Extract emails, phone numbers, and social media links from any web page.
    Costs $0.03 USDC per request via x402 on Base.`,
        inputSchema: {
          url: z.string().url().describe("URL to extract contacts from"),
        },
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      },
      async ({ url }) => {
        const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/contacts`, { url });
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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