agent-gateway
Converts any website into an MCP server, enabling AI assistants to search and interact with the site beyond just reading.
README
mcp-site-gateway
Turn any existing website into a working MCP server so AI assistants can search and use it, not just read it.
Most websites were built for human eyes. AI assistants can read them at best, but they cannot search them properly or extract facts reliably. This tool points at a site, learns its content, and serves it as an MCP server, the standard plug that lets assistants like Claude and ChatGPT work with the site directly.
It is the fixing half of a funnel that starts with the agent-readiness-auditor (which grades sites) and the Agentic Web Index (which ranks 200 of them).
Try a live gateway first (one minute, nothing to install)
Two gateways built with this tool run in production, serving asishsingh.in and freeyoutubetranscribe.com from one process. Connect to one and see what your own site could offer.
In Claude Code:
claude mcp add asish --transport http https://gateway.asishsingh.in/asishsingh.in/mcp
On Claude.ai, open Settings, then Connectors, then Add custom connector, and paste the same address. Cursor and Windsurf accept it as a remote MCP server URL in their settings.
Then ask the assistant something like "what does this site say about the Agentic Web Index?" and watch it call search_site and get_page instead of scraping.
Build a gateway for your own site
What you need
- A computer with a terminal (Terminal on Mac, PowerShell on Windows).
- Node.js 22.13 or newer. Check with
node --version. If that prints an error or a lower number, install the LTS version from nodejs.org first.
That's all. No download, no build, no programming knowledge, every step below is copy and paste, and each one says what you should see.
Step 1, build a gateway for your site
Replace example.com with your website in every command from here on.
npx mcp-site-gateway build https://example.com
The first run asks npx to install the package, answer yes. The build then crawls your site politely (it respects your robots.txt) and can take a few minutes for a large site. It worked if it ends by printing a small summary like:
{ "dir": "gateways/example.com", "pages": 42, "skipped": 3 }
Your site's searchable index now lives in a gateways/example.com/ folder in the directory where you ran the command, alongside crawl-report.json, which lists every page visited or skipped and why.
Step 2, connect it to Claude and test
Run this from the same directory:
claude mcp add example-gateway -- npx -y mcp-site-gateway serve example.com --out "$PWD/gateways"
Now ask Claude Code a question about your site, for example "using example-gateway, what does my site say about pricing?" You should see it call tools named search_site or get_page and answer from your actual pages. That's the whole product working.
Every gateway exposes four tools, search_site (full text search), get_page (clean content of one page), list_sections (site structure), and get_site_info (business basics).
Step 3, keep it fresh
When your website changes, update the index from the same directory with:
npx mcp-site-gateway refresh https://example.com
Put it on the internet
Everything so far runs only while your computer is awake. For a gateway that AI assistants can reach at any time, run the same tool on a small server:
npx mcp-site-gateway serve --http 8080 --token <secret>
One process serves every gateway in the gateways/ folder it is started from. You should see a line like:
mcp-site-gateway serving 2 gateway(s) on http://127.0.0.1:8080, endpoints /example.com/mcp /other.com/mcp
Each site's endpoint is /<hostname>/mcp, /healthz lists what is being served (useful as an uptime check), and the token flag is optional bearer protection for private gateways. docs/deploy.md walks through two real hosting setups step by step, a VPS behind HTTPS and Hostinger shared hosting, the latter is how the live gateways above are deployed.
Help agents find it
A gateway nobody can discover does nothing. Generate the two discovery files:
npx mcp-site-gateway manifest example.com --endpoint https://gateway.example.com/example.com/mcp
This writes llms.txt and agents.json into your gateways/example.com/ folder. Upload them to your website, llms.txt at the site root (so it is reachable at example.com/llms.txt) and agents.json in a folder called .well-known (reachable at example.com/.well-known/agents.json). They are the sign on the door telling AI agents a proper entrance exists and where it is. Both live sites above publish both files if you want to see real examples.
If something goes wrong
node: command not foundNode.js is not installed or the terminal was opened before installing. Install from nodejs.org, then open a new terminal window.- The build finds 0 pages. Your site may block automated visitors (common with aggressive bot protection). Check
gateways/<your-site>/crawl-report.jsonfor the reason, and runnpx agent-readiness-auditor <your-site>to see your site's stance. - Claude does not list the gateway. Run
claude mcp listto confirm it registered. The registration stores the gateways folder's full path, so if you move that folder, remove and re add the server. - Anything else. Open an issue with your
crawl-report.jsonattached, real reports are how the crawler improves.
Working from source
git clone https://github.com/asish-singh/mcp-site-gateway
cd mcp-site-gateway
npm install && npm run build
node dist/cli.js --help
npm test runs the test suite against a local fixture website, so tests never touch the network. npm run lint and npm run typecheck keep the code honest, and CI runs all three on every push and pull request.
Project documents
The version one specification is in SPEC.md, design decisions are recorded in docs/adr/, and changes in CHANGELOG.md. MIT licensed.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。