Urgent.News

What's breaking now, across thousands of outlets.

AI

Giving Your AI Coding Assistant Live Web Access with an MCP Server

Large language models know a lot, but they don't know what changed on a website this morning. If you use Claude Code, Claude Desktop, Cursor or another MCP client, you can close that gap by connecting a web data server through the Model Context Protocol (MCP). This post explains what that gives you, how to set it up in a few minutes, and how to use it without wasting tokens. What MCP adds MCP is…

Large language models can be knowledgeable, but they lack awareness of recent website updates. Claude Code, Claude Desktop, Cursor, and other MCP clients can bridge this gap by connecting a web data server via the Model Context Protocol (MCP). This post explains the benefits, setup process, and efficient usage of MCP without consuming tokens.

MCP is an open protocol enabling AI clients to call external tools. A web scraping MCP server offers functions like scraping a URL or searching the web when a task requires current information. These can include checking the latest library documentation, reviewing a changelog, comparing pricing pages, or gathering examples from a site.

For instance, the XCrawl MCP server (npm package xcrawl-mcp) provides tools like xcrawl_scrape for fetching a page's Markdown, HTML, links, or summary; xcrawl_search to run a web search and return structured results; xcrawl_map to list URLs a domain exposes; xcrawl_crawl and xcrawl_check_crawl_status to perform a background crawl job and collect results; and xcrawl_key_status to verify your API key and remaining credits.

The simplest setup uses the hosted MCP URL, requiring no installation on your machine. In Claude Desktop, add the endpoint to claude_desktop_config.json: { "mcpServers": { "xcrawl": { "url": "https://mcp.xcrawl.com/YOUR_API_KEY/mcp" } } }. In Claude Code, use the terminal command claude mcp add --transport http xcrawl https://mcp.xcrawl.com/YOUR_API_KEY/mcp.

Alternatively, run it locally over stdio if you prefer a Node.js 18+ process, using XCRAWL_API_KEY=YOUR_API_KEY npx -y xcrawl-mcp or registering it with claude mcp add xcrawl -e XCRAWL_API_KEY=YOUR_API_KEY -- npx -y xcrawl-mcp.

To use the MCP server effectively, request Markdown rather than HTML, map URLs before crawling to only fetch necessary pages, and prioritize targeted scrapes over full crawls when a single answer suffices. Remember to include the sources you read, respect each site's robots.txt and terms of service, and avoid overloading small sites.

With a single config entry and 1,000 free credits included in new XCrawl accounts, connecting a web data MCP server turns your AI assistant into a live web-aware tool. For more information, visit https://docs.xcrawl.com/.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Do you know that you can integrate RAG into Gemini?

I was asking random AI questions to my AI (Gemini) just to understand how it works with the skill that integrates data from Google Workspaces (emails, notes, google docs) just because I was wondering…

  • Gemini can integrate Retrieval-Augmented Generation (RAG) for enhanced inference results.
  • Users can provide Gemini with access to Google Workspaces data for improved understanding.
  • Users can curate Gemini's writing tone based on their existing documents.

More from Saturday 17 October →