sulus-web-mcp

sulus-web-mcp

Enables live-web research by providing stateless browsing, link extraction, and page search capabilities via Playwright, allowing agents to fetch and analyze web content without session management.

Category
访问服务器

README

sulus-web-mcp

Stateless Playwright MCP for live-web research. Agents get three tools — browse_page, extract_links, search_page — each of which opens a URL, extracts text, and closes the browser context. No click/type/login tools.

Built for Sulus Agents (ai-phone-system MCP connectors) and the rest of the ecosystem (Cursor, MCPConnect). Laravel cannot run Chromium in-process; this service is the HTTP MCP those agents call.

Tools

Tool When to use What it returns
browse_page Need the content of a public page Title, final URL, cleaned markdown (or links/title only)
extract_links Need outbound links Markdown list of href + text
search_page Need excerpts matching a query Up to N snippets around the query

Each call is self-contained (navigate + extract). That matches ai-phone-system's connector client, which POSTs tools/list / tools/call with no MCP session.

Requirements

  • Node.js 20+
  • Playwright Chromium (npx playwright install chromium after npm install)

Setup

cd /Users/macbook/Workshop/Sulus.ai/sulus-web-mcp
npm install
npx playwright install chromium
cp .env.example .env
# set MCP_SHARED_SECRET
npm run build

HTTP (Agents, team, production)

npm run start:http
# or: npm run dev:http

Health: GET /health
MCP: POST /mcp (JSON-RPC, Streamable HTTP)

Variable Description
MCP_SHARED_SECRET Bearer token required on /mcp
MCP_HOST / MCP_PORT / MCP_PATH Bind (default 0.0.0.0:3000/mcp)
MCP_ALLOWED_HOSTS Allowed Host header values
ALLOW_INSECURE_HTTP Set true only for local http:// testing
ALLOW_HOSTS / DENY_HOSTS Optional host lists
NAVIGATION_TIMEOUT_MS Default 25000 (stay under Agents' 60s tool timeout)
BROWSER_MAX_CONCURRENT Default 3
RATE_LIMIT_PER_MINUTE Per bearer token, default 30
MAX_OUTPUT_CHARS Default 18000 (Agents truncate at 20k)

Logs are one JSON line per browse (url origin+path, status, ms). Page bodies are never logged.

Docker

cp .env.example .env
docker compose up -d --build

Uses the official Playwright image (Chromium included). shm_size: 1gb is required.

stdio (local Cursor)

npm run start

.cursor/mcp.json:

{
  "mcpServers": {
    "sulus-web": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/Users/macbook/Workshop/Sulus.ai/sulus-web-mcp"
    }
  }
}

HTTP from Cursor (after deploy):

{
  "mcpServers": {
    "sulus-web": {
      "url": "https://browse.sulus.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_SHARED_SECRET"
      }
    }
  }
}

Connect from ai-phone-system Agents

  1. Deploy this service behind HTTPS.
  2. In MCP Connectors, add a custom server:
    • URL: https://browse.sulus.ai/mcp
    • Auth: Bearer, token = MCP_SHARED_SECRET
  3. Enable the connector on the agent.

The HTTP handler answers tools/list and tools/call without initialize / Mcp-Session-Id, which is what ExternalMcpClientService sends. Sessionful Streamable HTTP still works for Cursor.

Safety

  • HTTPS only (unless ALLOW_INSECURE_HTTP=true)
  • Blocks localhost, RFC1918, link-local, CGNAT, cloud metadata hosts
  • Resolves DNS and rejects private answers
  • Aborts in-page requests to blocked URLs
  • New browser context per call — no cookie sharing
  • No form-fill / click / file-upload tools

Scripts

npm run typecheck
npm test
npm run build

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选