Skip to content
Fieldwork
Esc
↑↓navigate↵open⌘Jpreview
On this page

MCP server

Run @howells/fieldwork-mcp to give Claude, Cursor, Codex or any MCP client Fieldwork's capabilities as tools, one or more providers per capability.

npx -y @howells/fieldwork-mcp --provider firecrawl

Node 22.12 or later. For remote MCP over HTTP behind per-agent bearer keys, see HTTP gateway.

Configure a client

claude mcp add fieldwork -e FIRECRAWL_API_KEY=… -- npx -y @howells/fieldwork-mcp --provider firecrawl

For Claude Desktop, Cursor and other clients that take a JSON file:

{
  "mcpServers": {
    "fieldwork": {
      "command": "npx",
      "args": [
        "-y",
        "@howells/fieldwork-mcp",
        "--search",
        "parallel",
        "--read",
        "firecrawl"
      ],
      "env": { "PARALLEL_API_KEY": "…", "FIRECRAWL_API_KEY": "…" }
    }
  }
}
Choose providers

Use one provider for everything it offers:

fieldwork-mcp --provider tavily

Or one or more providers per capability. Repeat a flag or separate names with commas to let the model pick a provider per call (first listed is default); nothing falls back to another provider:

fieldwork-mcp --search exa,brave --read firecrawl --product firecrawl --research exa \
  --monitor firecrawl --browser browserbase --allow-monitor --allow-browser

Capabilities: search, images, reverseImage, read, readMany, extract, product, map, crawl, answer, research, discover, decide, act, browser, parse, monitor, usage. A provider that lacks the capability you route to it stops the server at start-up with an error.

Each provider reads its key from the environment; see Keys.

Options
Option Effect
--provider <name> Every capability the provider offers. Repeat or separate with commas for multiple providers (first is default).
--<capability> <name> One or more providers for a capability, for example --search exa,brave or --monitor firecrawl. First is default.
--allow-act Adds run_browser_script, which runs code in a remote browser. Off by default.
--allow-browser Adds open_browser and close_browser, which keep a remote browser open until it is closed or expires. Off by default.
--allow-monitor Adds create_monitor, get_monitor, list_monitors, delete_monitor and list_monitor_events. A monitor keeps running, and billing, until it is deleted. Off by default.
--max-characters <n> The long text one result may return. Default 20,000.
--help, --version Show the usage text or the version.

The three --allow-* options are separate on purpose. Each tool group starts remote browsers or creates a lasting, billed resource, so a client gets it only when you ask.

Tools and providers

Each tool serves one capability, or one method of browser or monitor; find_images reads through read and renders through act.

Tool What it does Providers
search_web Ranked pages for a query. Exa, Firecrawl, Tavily, Parallel, Perplexity, Brave, SerpApi, Browserbase
search_images Images for a query, with the page each appears on. Firecrawl, Tavily, Parallel, Brave, SerpApi
search_by_image The pages an image appears on, from the image’s URL. SerpApi
read_page One page as Markdown. Kernel loads it in a real browser, so JavaScript runs. Exa, Firecrawl, Tavily, Parallel, Browserbase, Kernel
read_pages Several pages in one call; pages that fail come back in failed. Exa, Firecrawl, Tavily, Parallel
extract_values The values a JSON Schema asks for, from one page. Exa, Firecrawl, Parallel
read_product A product page’s variants, from its structured data. Firecrawl
find_images A page’s images, best first, each at its largest known original. Reads the page, and renders it in a browser when the read leaves no clear best image. Kernel, or Browserbase reading with --act kernel
map_site A site’s URLs, without reading them. Firecrawl, Tavily
crawl_site The text of many pages from one site. Firecrawl, Tavily
answer_question A short answer with its sources, in one call. Exa, Tavily, Parallel, Perplexity, Brave
research_question An answer with sources, from a job of many steps. Exa, Firecrawl, Tavily, Parallel, Perplexity
find_entities Entities of one kind that meet every condition you list. Parallel
make_decisions Yes or no, choice and score answers about a context, with probabilities. Parallel, Perplexity
parse_document A PDF, DOCX, XLSX, PPTX, HTML or CSV file as Markdown. Firecrawl, LlamaParse, Reducto
check_usage Credits used and remaining. Firecrawl, Tavily, SerpApi, Browserbase
run_browser_script A script run in a remote browser. Only with --allow-act. Firecrawl, Kernel
open_browser A remote browser to drive over CDP. Only with --allow-browser. Firecrawl, Browserbase, Kernel
close_browser Closes a browser opened with open_browser. Only with --allow-browser. Firecrawl, Browserbase, Kernel
create_monitor A monitor that checks the web on a schedule. Only with --allow-monitor. Exa, Firecrawl, Parallel
get_monitor, list_monitors, delete_monitor Read, list and delete monitors. Only with --allow-monitor. Exa, Firecrawl, Parallel
list_monitor_events What a monitor found. Only with --allow-monitor. Exa, Firecrawl, Parallel

Every tool’s input schema lists only the options its provider supports, so a client is never offered an option that would be ignored.

Results and errors

Results come back as structuredContent, without the provider’s own response. Lists come back as an object (list_monitors returns { "monitors": [...] }), and delete_monitor and close_browser return { "deleted": true, "id": … } and { "closed": true, "id": … }.

Failures come back as results with isError: true and a JSON body: code, message, retryable, retryAfter, and jobId for a job that may still be running. Pass a jobId back as resume to collect the job instead of starting another.

Embed the server
import { fieldwork } from "@howells/fieldwork-sdk";
import { firecrawl } from "@howells/fieldwork-sdk/firecrawl";
import { createFieldworkServer } from "@howells/fieldwork-mcp";

const server = createFieldworkServer(fieldwork({ adapter: firecrawl() }), {
  allow: ["monitor"],
});

allow names capabilities that are left out by default (act, browser, monitor) to include as well. server is an McpServer from @modelcontextprotocol/server; connect it to any transport.

Last updated on

Was this page helpful?