ai-agent

MCP (Model Context Protocol)

MCP is an open protocol by Anthropic that standardises how AI models connect to external tools, APIs, and data sources through a uniform server-client interface.

The Model Context Protocol (MCP) defines a JSON-RPC communication layer between AI models (clients) and capability providers (servers). An MCP server exposes a set of Tools (callable functions), Resources (data the model can read), and Prompts (reusable prompt templates). The model client discovers available capabilities and invokes them during inference, allowing it to fetch live data, execute code, query databases, or call external APIs — all through a standardised protocol.

MCP decouples AI capability from model training. Rather than fine-tuning a model to know a specific dataset, developers write an MCP server that exposes the data as readable resources or queryable tools. The model calls those tools at runtime, always accessing fresh information. This architecture is the basis for 'agentic' AI that can act on the world rather than just describe it.

AlterLab provides an MCP server that exposes web scraping as a native AI tool. AI agents can call `scrape`, `crawl`, or `extract` tools through the protocol and receive structured data responses, enabling seamless integration of live web data into LLM workflows without HTTP client boilerplate.

Examples

// MCP tool definition example
{
  "name": "scrape_url",
  "description": "Fetch and extract content from a public web URL",
  "inputSchema": {
    "type": "object",
    "properties": {
      "url": { "type": "string", "description": "URL to scrape" },
      "extract": { "type": "string", "description": "Data to extract" }
    },
    "required": ["url"]
  }
}

Related Terms

Extract MCP (Model Context Protocol) data from any website

AlterLab returns clean, structured data from any public URL — no scraper infrastructure needed. Start free, no credit card required.

View API docs

Your first scrape.
Sixty seconds.

$1 free balance. No credit card. No SDK.Just a POST request.

terminal
curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'

No credit card required · Up to 5,000 free scrapes · Balance never expires

    MCP (Model Context Protocol) — Web Scraping Glossary | AlterLab