OmniMCP
Turns any website into a rich set of MCP tools for scraping, crawling, structured data extraction, and automatic API mounting via OpenAPI specs.
README
OmniMCP — Universal Web-to-MCP Gateway
Turn any website into a first-class MCP toolset in seconds.
OmniMCP is a universal MCP server that transforms any URL into a rich set of MCP tools. It can scrape content, perform deep crawls, run LLM-powered structured extraction, auto-detect and mount REST APIs via OpenAPI specs, and more — all exposed through a single SSE endpoint that any MCP client can connect to.
Philosophy
Modern AI agents are incredibly powerful at reasoning, but they are still fundamentally blind to the live web. Most agents either:
- Rely on brittle, pre-built scrapers for a handful of known sites, or
- Have no web access at all.
OmniMCP solves the "last mile" problem: any website → structured, tool-callable data without writing custom code for each domain.
It embodies three core principles:
- Universality — One server, any site.
- Zero-config intelligence — LLM extraction + automatic OpenAPI mounting when available.
- Production-grade reliability — Caching, retries, JS rendering, anti-bot hardening, and clean Markdown output.
Pain Points Solved
| Pain Point | How OmniMCP Solves It |
|---|---|
| Agents can't access dynamic/JS-heavy sites | Playwright + crawl4ai with wait_for_js, user simulation, overlay removal |
| Every new site requires custom scraper code | scrape_url, crawl_site, smart_extract_page, css_extract_page work on any URL |
| REST APIs are invisible to agents unless manually integrated | connect_site auto-detects OpenAPI/Swagger specs and mounts them as native MCP tools |
| Repeated scraping wastes tokens and time | Built-in SQLite cache with configurable TTL (default 1h) |
| Structured data extraction is inconsistent | Optional LLM-based extraction (smart_extract_page) or deterministic CSS selectors |
| Agents need both raw content and precise data | Multiple extraction modes (Markdown, JSON schema, CSS, keyword search) |
Use Cases
1. Research & Competitive Intelligence
# Agent wants latest pricing from a competitor
result = await scrape_url("https://competitor.com/pricing")
2. Automated Monitoring
Deep crawl a documentation site nightly and diff changes.
3. Dynamic API Integration
Point connect_site at a new SaaS product → instantly gain 20–80 new MCP tools from their OpenAPI spec.
4. Structured Data Extraction at Scale
Use smart_extract_page with natural language instructions + JSON schema to turn any page into typed data.
5. Internal Tooling for Agents
Give your agent a "web superpower" without maintaining dozens of site-specific scrapers.
Features
- 10 production tools (see table below)
- FastMCP 3.3.1 SSE transport (compatible with Claude Desktop, Cursor, Hermes, etc.)
- crawl4ai 0.8.6 backend with full JavaScript rendering
- Automatic OpenAPI mounting — turns REST APIs into MCP tools
- LLM-powered extraction (optional, via your local oMLX endpoint)
- SQLite result cache with namespace-based invalidation
- Proxy support for anti-bot sites
- Docker-ready
Tool Reference
| Tool | Description | Best For |
|---|---|---|
connect_site |
Auto-detects OpenAPI spec or falls back to scrape mode | First contact with new domain |
scrape_url |
Clean Markdown + metadata from any URL | General browsing |
crawl_site |
Deep crawl with depth & page limits | Documentation, blogs, sites |
smart_extract_page |
Natural-language + optional JSON schema extraction via LLM | Structured data (pricing, products, etc.) |
css_extract_page |
Fast, deterministic CSS selector extraction | High-volume, stable layouts |
search_page |
Keyword search with surrounding context | Finding specific information |
get_links |
All internal + external hyperlinks | Graph building, discovery |
fetch_api_endpoint |
Raw HTTP client (GET/POST/PUT/DELETE) | Direct API calls |
list_tools |
Currently mounted tools | Self-inspection |
clear_cache |
Namespace or full cache flush | Forcing fresh data |
Quick Start
# 1. Clone
git clone https://github.com/shagghiesuperstar/omni-mcp.git
cd omni-mcp
# 2. Create venv (Python ≥ 3.10 required)
python3 -m venv .venv
source .venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Install browser
playwright install chromium
# 5. Run crawl4ai post-install
crawl4ai-setup
# 6. Configure (optional but recommended)
cp .env.example .env
# Edit .env and set LLM_BASE_URL if you want smart_extract_page to use your local LLM
# 7. Run
python server.py
# → SSE endpoint live at http://0.0.0.0:8055/sse
Hermes Agent Integration
Add to your config.yaml:
mcp_servers:
omni_mcp:
transport: sse
url: http://localhost:8055/sse
Cross-machine (M4 ↔ M5 via Tailscale):
mcp_servers:
omni_mcp:
transport: sse
url: https://your-m5-tailscale-hostname:8055/sse
Advanced Usage Examples
LLM-Powered Structured Extraction
result = await smart_extract_page(
url="https://example.com/products",
instruction="Extract all product names, prices, and availability as a list of objects",
schema='{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"},"in_stock":{"type":"boolean"}}}}}}'
)
Deep Crawl with Limits
pages = await crawl_site(
base_url="https://docs.example.com",
max_depth=3,
max_pages=50
)
Auto-Mounting an API
await connect_site("https://api.example.com")
# → Instantly mounts all endpoints as MCP tools under the domain prefix
Opportunities & Future Directions
- Agent-native web layer — Become the default web ingestion layer for every major agent framework.
- Self-updating tool registry — Automatically discover and mount new APIs as sites publish OpenAPI specs.
- Multi-modal extraction — Combine LLM + vision for screenshot-based or PDF-heavy sites.
- Enterprise deployment — Add authentication, rate limiting, and audit logging for internal agent fleets.
- Community scrapers — Allow users to contribute high-quality CSS/LLM extraction templates.
License
MIT — use freely in personal and commercial agent projects.
Built with precision by Pi (Superstar_ops) • May 2026
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。