Connect your AI Agents to TinyFish in minutes

Available tools
run_automation
start_automation
start_automations_batch
create_browser_session
Create a remote browser session and return its Chrome DevTools Protocol (CDP) endpoint. This hands back a raw browser connection for external automation tooling — it is not something this agent drives directly. Billed per minute until the session ends or its inactivity timeout is reached — call closebrowsersession to end billing early.
close_browser_session
Close a remote browser session created by createbrowsersession, ending its per-minute billing immediately. Idempotent — closing an already-ended session still succeeds.
list_browser_profiles
List saved Browser Context Profiles (persistent logged-in browser state). Use the returned id values for profileid when calling runautomation, startautomation, or startautomationsbatch with useprofile=True.
fetch_urls
Fetch and extract content from 1-10 URLs. Per-URL failures are returned in errors alongside any successful results rather than failing the whole call.
list_runs
List automation runs with optional server-side filters (status, goal substring, date range) and sorting. Use get_run for full step-level detail on a specific run.
get_run
Get full detail for one run, including its steps. Defaults to lean output: screenshots as URLs and HTML omitted. Use getrunstepscreenshot/getrunstephtml to fetch individual step content directly, or pass screenshots='base64'/html='base64' here to inline it (subject to a total size budget across all steps; check each step's screenshottruncated/htmltruncated to see what was omitted).
get_runs_batch
Get full detail for up to 100 runs by ID in a single call. Inlined step content is subject to a total size budget across the whole response; check each step's screenshottruncated/htmltruncated to see what was omitted, then use getrunstepscreenshot/getrunstephtml to fetch it individually.
cancel_run
Cancel a pending or running automation run. Has no effect (returns the current status) if the run already finished.
cancel_runs_batch
Cancel up to 100 pending or running automation runs by ID in a single call.
get_run_step_screenshot
Get the screenshot for one run step as base64-encoded JPEG. Use getrun's steps to find valid runid/stepid pairs. Screenshots over 512KB are not returned: contentbase64 is null and truncated is true. There is no param to raise that cap — use the step's screenshot URL from get_run instead.
get_run_step_html
Get the raw HTML snapshot for one run step. Only available if captureconfig.html was enabled on the run. Use getrun's steps to find valid runid/stepid pairs.
search_web
Run a web search and return ranked results. Supports filtering by domain, date range, and recency. Use the page param (0-10) to fetch more results; check the response's hasnextpage before requesting another.
validate_credential
Check that the TinyFish connection works by calling the wallet endpoint.
list_vault_credentials
List vault credential items available to this account. Use the returned id values for credentialitemids when calling runautomation, startautomation, or startautomationsbatch.
get_wallet
Get the current wallet balance, auto-reload configuration, and billing rates for this account.
list_fetch_usage
List paginated usage records for the fetch API.
list_search_usage
List paginated usage records for the search API. Each record has the query and its result count, not the results themselves.
list_browser_session_usage
List paginated usage records for browser sessions, optionally filtered by session_id or status.

How to set up Merge Agent Handler
In an mcp.json file, add the configuration below, and restart Cursor.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "url": "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
5 "headers": {
6 "Authorization": "Bearer yMt*****"
7 }
8 }
9 }
10}
11Open your Claude Desktop configuration file and add the server configuration below. You'll also need to restart the application for the changes to take effect.
Make sure Claude is using the Node v20+.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote@latest",
8 "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
9 "--header",
10 "Authorization: Bearer ${AUTH_TOKEN}"
11 ],
12 "env": {
13 "AUTH_TOKEN": "yMt*****"
14 }
15 }
16 }
17}Open your Windsurf MCP configuration file and add the server configuration below.
Click on the refresh button in the top right of the Manage MCP server page or in the top right of the chat box in the box icon.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote@latest",
8 "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
9 "--header",
10 "Authorization: Bearer ${AUTH_TOKEN}"
11 ],
12 "env": {
13 "AUTH_TOKEN": "<ah-production-access-key>"
14 }
15 }
16 }
17 }In Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows), run "MCP: Open User Configuration".
You can then add the configuration below and press "start" right under servers. Enter the auth token when prompted.
Learn more in the official documentation ↗
1{
2 "inputs": [
3 {
4 "type": "promptString",
5 "id": "agent-handler-auth",
6 "description": "Agent Handler AUTH_TOKEN", // "yMt*****" when prompt
7 "password": true
8 }
9 ],
10 "servers": {
11 "agent-handler": {
12 "type": "stdio",
13 "command": "npx",
14 "args": [
15 "-y",
16 "mcp-remote@latest",
17 "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
18 "--header",
19 "Authorization: Bearer ${input:agent-handler-auth}"
20 ]
21 }
22 }
23}FAQs on using Merge's TinyFish MCP server
FAQs on using Merge's TinyFish MCP server
Explore other MCP servers built and managed by Merge
Ready to try it out?
Whether you're an engineer experimenting with agents or a product manager looking to add tools, you can get started for free now

























