AutoFlow MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AutoFlow MCP extract the main content and pricing table from example.com/pricing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AutoFlow MCP
Browser automation and content extraction as MCP (Model Context Protocol) tools. Use Playwright to navigate, extract structured content, click elements, and run multi-step workflows—with local caching and auto-summarization.
Overview
AutoFlow MCP is an MCP server that exposes browser automation as tools. LLM applications (Claude, Cursor, etc.) can call these tools to:
Open URLs and read page structure
Extract main content, tables, forms, and links
Click elements by selector or visible text
Run ordered sequences of navigations and clicks
Cache and summarize pages for faster reuse
All tools are invoked over the Model Context Protocol via stdio, so any MCP-capable client can use them.
Related MCP server: agent-browser
Features
Feature | Description |
MCP tools | Six tools: |
Playwright | Headless Chromium for navigation, DOM access, and interaction |
Smart extraction | Main content (article, main, .content, etc.), tables (headers + rows), forms (action, method, inputs), links, and meta tags |
Auto-summarization | Short text summaries for extracted pages, suitable for prompts or previews |
Local cache | Visited pages stored under |
Plugins | Add tools by implementing the plugin contract and registering in |
Prerequisites
Node.js 18 or higher
Playwright Chromium: installed via
npx playwright install chromium
Installation
git clone <repository-url>
cd AutoFlow-MCP # or your project directory
npm install
npx playwright install chromium
npm run buildQuick Start
Start the MCP server on stdio:
npm run mcpOr run the built entrypoint directly:
node dist/mcp/stdio.jsAfter building, you can also use the autflow-mcp binary:
npx autflow-mcpMCP Client Configuration
Point your MCP client at the server command. Examples:
Claude Desktop
In claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"autflow-mcp": {
"command": "node",
"args": ["/path/to/AutoFlow-MCP/dist/mcp/stdio.js"]
}
}
}Or, if the project is on your PATH and built:
{
"mcpServers": {
"autflow-mcp": {
"command": "npx",
"args": ["autflow-mcp"]
}
}
}Cursor
In Cursor MCP settings, add a server with:
Command:
nodeArgs:
["/absolute/path/to/AutoFlow-MCP/dist/mcp/stdio.js"]
Replace the path with your project root. The server must be built (npm run build) before use.
Tools
navigate
Opens a URL in a headless browser and returns the final URL and page title.
Argument | Type | Default | Description |
| string (URL) | required | Target URL to open |
|
|
| When to consider navigation complete |
Example: { "url": "https://example.com", "waitUntil": "networkidle" }
extract_content
Fetches a URL, extracts structured content (main blocks, tables, forms, links, meta), and optionally uses the local cache and adds a text summary.
Argument | Type | Default | Description |
| string (URL) | required | URL to extract from |
| boolean |
| Use cached result when valid |
| number |
| Max age for cached entries (ms) |
| boolean |
| Include a short text summary in the result |
Output: JSON with url, title, main, tables, forms, links, meta, extractedAt, and optionally summary and cached: true|false.
click_element
Navigates to a URL, then clicks an element by CSS selector or by visible text. Returns the resulting URL and title.
Argument | Type | Default | Description |
| string (URL) | required | Page URL to open first |
| string | — | CSS selector (e.g. |
| string | — | Visible text to match (first match is clicked); provide |
| number |
| Milliseconds to wait after the click |
run_workflow
Runs a sequence of navigate and click steps, then optionally extracts and summarizes the final page. Results are cached.
Argument | Type | Default | Description |
| array | required | List of step objects (see below) |
| boolean |
| Extract and return content from the final page |
Step object:
Field | Type | Description |
|
| What to do in this step |
| string (URL) | For |
| string | For |
| string | For |
| number |
|
Example:
{
"steps": [
{ "action": "navigate", "url": "https://example.com" },
{ "action": "click", "text": "Sign in", "waitMs": 1000 },
{ "action": "click", "selector": "#submit" }
],
"extractFinal": true
}cache_list
Lists cached page entries or removes a URL from the cache.
Argument | Type | Default | Description |
|
|
|
|
| string (URL) | — | Required when |
plugin_info
Example plugin tool that returns plugin metadata. Arguments: format ("json" | "text", default "json").
Extracted Data Shape
extract_content and run_workflow (when extractFinal is true) return an extraction object with:
main— Text blocks from semantic regions (article,main,.content,#content,section, etc.), orbodyif nothing else matchestables—{ headers: string[], rows: string[][] }for each tableforms—{ action?, method?, inputs: { name, type, value? }[] }for each formlinks—{ href, text }[](first 200)meta—{ description?, robots? }from<meta>tagsextractedAt— ISO timestamp
When includeSummary (or the workflow’s summary) is enabled, a summary string is added with a concise text version of the above.
Caching
Directory:
data/page-cache/(created on first use)Keys: Normalized URL (no fragment, normalized path and ports)
TTL:
extract_contentusescacheMaxAgeMs(default 1 hour); older entries are ignoredWrite:
extract_contentandrun_workflowwrite to the cache after a fresh fetch
Use cache_list to inspect or clear cached pages.
Project Structure
src/
├── core/
│ ├── browser.ts # Playwright lifecycle: launch, context, page, navigate
│ ├── cache.ts # Filesystem cache (data/page-cache)
│ ├── extraction.ts # DOM extraction: main, tables, forms, links, meta
│ └── summarizer.ts # Text summarization for extracted pages
├── mcp/
│ ├── registry.ts # Loads built-in + plugin tools, registers with MCP
│ ├── server.ts # createAndConnect(transport)
│ └── stdio.ts # STDIO entrypoint (dist/mcp/stdio.js)
├── tools/
│ ├── navigate.ts
│ ├── extract.ts
│ ├── click.ts
│ ├── workflow.ts
│ └── cache_list.ts
└── plugins/
├── index.ts # loadPlugins() — add new plugins here
└── example.ts # plugin_info exampleAdding a Plugin
Create a tool module under
src/plugins/that exports:definition:{ name, title, description, inputSchema }whereinputSchemais a Zod recordhandler: async(args) => { content: [{ type: "text", text: string }]; isError?: boolean }
Register it in
src/plugins/index.tsby importing the module and appending{ definition, handler }to the array returned fromloadPlugins().
See src/plugins/example.ts for a minimal plugin.
Development
# Build once
npm run build
# Watch mode (recompile on change)
npm run dev
# Run MCP server (after build)
npm run mcpLicense
MIT — see LICENSE.
Available Tools
6 toolscache_listList Cached PagesB
List all cached page entries, or remove a URL from the cache.
Inputs: url, action.
click_elementClick ElementA
Navigate to a URL and click an element by CSS selector or by visible text. Returns the resulting URL and title.
Inputs: url (required), text, selector, waitAfterMs.
extract_contentExtract Page ContentB
Fetch a URL, extract main content, tables, forms, and links. Uses local cache when useCache is true. Optionally include a text summary.
Inputs: url (required), useCache, cacheMaxAgeMs, includeSummary.
plugin_infoPlugin InfoC
Returns metadata about the plugin system (example plugin).
Inputs: format.
run_workflowRun WorkflowB
Execute a sequence: navigate and/or click steps, then optionally extract final page. Each step: { action: 'navigate'|'click', url?, selector?, text?, waitMs? }.
Inputs: steps (required), extractFinal.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
navigate, extract_content, click_element, and run_workflow all fetch/navigate URLs, and run_workflow explicitly subsumes navigate, click, and extract in a single call, so boundaries are blurred and an agent could easily pick the wrong entry point. plugin_info is also unrelated to the browsing domain, adding noise rather than a distinct capability.
Three tools follow verb_noun (extract_content, click_element, run_workflow), but navigate is a bare verb, plugin_info is a noun phrase, and cache_list reverses to noun_verb. The mixed conventions make the pattern unpredictable.
Six tools is a well-scoped size for a browser automation server, and each core tool maps to a real step in a browsing session. The only weak spot is plugin_info, which appears to be an example/demo tool that doesn't earn its place.
The surface covers navigation, clicking, content extraction, caching, and a composite workflow, but there is no way to type into or submit forms, wait for a specific selector, take screenshots, or navigate back—significant gaps for realistic automation. The cache can be listed and pruned but there is no explicit way to seed or inspect entries beyond that.
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Hosted browser for agents: open pages, search the web, extract data, read PDFs and take screenshots.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceHeadless browser automation for LLM agents via REST API or MCP tools. Enables navigating pages, reading structured content, clicking elements, filling forms, and executing JavaScript.-
- AlicenseNot gradedqualityDmaintenanceProvides a headless Chromium browser through MCP, enabling AI agents to browse JavaScript-rendered pages, search the web, capture screenshots, extract tables and data, and run stateful multi-step interactions like clicking, typing, and form submission.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables browser automation through MCP with native Playwright operations, deterministic assertions, and natural-language grounded actions, structured extraction, and bounded agent workflows over live page elements.13Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables agents to scrape, crawl, map, search, and extract web pages as clean markdown or structured JSON directly through MCP tools.AGPL 3.0