AgentExtract MCP
β‘ AgentExtract MCP: Token-Saving Web Extraction for AI Agents
AgentExtract MCP connects your AI agents (Claude Desktop, Cursor, LangChain, CrewAI) to a high-speed, token-optimizing web extraction engine. It strips scripts, cookie banners, navigation menus, and ads from any webpage, returning dense, pristine Markdown and structured tables.
π° Saves 70% to 90% of LLM prompt tokens on web research tasks.
π οΈ Tools Included
extract_clean_markdown: Extracts dense semantic Markdown and page metadata from any URL.extract_tables: Converts HTML tables into clean Markdown tables and 2D JSON arrays.check_balance: Checks your remaining API credit balance.
Related MCP server: Averra Extract MCP
π Quickstart
1. Claude Desktop Setup
Add to your claude_desktop_config.json:
{
"mcpServers": {
"agent-extract": {
"command": "npx",
"args": ["-y", "@griffin121/agent-extract-mcp"],
"env": {
"AGENT_EXTRACT_API_KEY": "YOUR_API_KEY"
}
}
}
}2. Cursor Setup
Add to your Cursor MCP settings (~/.cursor/mcp.json or Workspace Settings):
{
"mcpServers": {
"agent-extract": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"AGENT_EXTRACT_API_KEY": "YOUR_API_KEY"
}
}
}
}3. Smithery Installation
Install via the Smithery CLI:
npx -y @smithery/cli install @griffin121/agent-extract-mcp --client claudeπ Python / LangChain & CrewAI Integration
If you are building custom agents in Python with LangChain or CrewAI:
import os
import requests
from langchain.tools import tool
AGENT_EXTRACT_URL = "https://accent-amendment-loaded-bills.trycloudflare.com/v1/extract"
API_KEY = os.getenv("AGENT_EXTRACT_API_KEY", "your_key_here")
@tool
def scrape_clean_markdown(url: str) -> str:
"""Scrapes a URL and returns token-optimized clean Markdown stripped of ads and clutter."""
headers = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
response = requests.post(AGENT_EXTRACT_URL, headers=headers, json={"url": url})
data = response.json()
if response.status_code == 402:
return f"Payment Required: Out of credits. Refill here: {data['details']['refillUrl']}"
return data["data"]["markdown"]
# Attach to your agent:
# agent = create_openai_tools_agent(llm, [scrape_clean_markdown], prompt)π³ Getting an API Key
API keys are managed with pre-funded credits. When an account runs out of credits, calls return an HTTP 402 Payment Required with an instant Stripe checkout link to top up.
License
MIT
Available Tools
3 toolscheck_balanceB
Checks your remaining AgentExtract credit balance and account status.
Inputs: apiKey.
extract_clean_markdownA
Extracts dense, token-optimized clean Markdown from any web URL. Strips banners, cookie popups, navigation clutter, and ads, saving 70% to 90% of LLM prompt tokens.
Inputs: url (required), apiKey.
extract_tablesB
Extracts all HTML tables from a web page as structured 2D arrays and Markdown tables. Ideal for financial, pricing, and tabular datasets.
Inputs: url (required), apiKey.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
Each tool targets a clearly distinct action: markdown extraction, table extraction, and account balance. Extraction tools split by output type, which is a meaningful and easy-to-distinguish boundary.
Two tools follow a verb_object pattern (extract_clean_markdown, extract_tables), but check_balance is a different verb-resource pairing and extract_clean_markdown has a redundant adjective. Still readable and predictable overall.
Three tools is on the thin side, but it matches a focused extraction-plus-billing service. Each tool earns its place with no filler.
Core extraction and account status are covered, but there are notable gaps: no extraction from provided HTML/documents, no bulk or batch extraction, and no way to manage or top up credits beyond checking balance.
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Clean Markdown and AI-readability scoring for any URL. Built for AI agents.
Pages, crawls and URL batches as clean Markdown and JSON for AI agents, with an Evidence Record.
Cloud scraping & crawling API for AI agents. Turn any URL into clean, LLM-ready markdown.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceThe web data platform for AI agents. Fetch, search, crawl, extract, monitor, and screenshot any URL. 55+ domain extractors, 65-98% token savings. 7 MCP tools included.332 npm12AGPL 3.0
- AlicenseAqualityDmaintenanceMCP server for Averra Extract β lets AI agents like Claude, Cursor, and ChatGPT convert any webpage into clean, LLM-ready Markdown.584 npmMIT
- AlicenseAqualityBmaintenanceDeterministic, context-efficient microtools for AI agents: 47 tools, 36 free. Free fetch_extract cuts page tokens by a median 98.1% vs raw HTML (53,820 β 2,001). PDF, CSV/JSON, sitemaps, feeds, metadata, utilities. 11 paid tools (screenshots, JS rendering, keyword research, media) from $0.02 USDC on Base via x402, prepaid, or card credits.171MIT
- AlicenseAqualityNot gradedmaintenanceEnables AI agents to extract clean, structured web content (articles, tables, links, visual layouts) optimized for LLM token efficiency, with fast response times and optional JavaScript support.572 npmMIT