Tutorials / AI agents

MCP server for AI agents

Lynkei runs an MCP server on this Mac at a fixed address, so Claude Code, Cursor or any MCP client can see the same traffic, devices and rules you see.

2 minuteshttp://127.0.0.1:8890/mcp

Add the server to your agent

Terminal
claude mcp add --transport http lynkei http://127.0.0.1:8890/mcp

Then restart the agent: agents read their MCP list when they start. Help → Connect AI Agent… in Lynkei shows the same address with copy buttons.

Connect an AI agent sheet: the server running at http://127.0.0.1:8890/mcp, the JSON to paste, and three setup steps

Why the address never changes

It's 127.0.0.1, so Wi-Fi, VPN and IP changes never matter: add it once. It only answers requests from this Mac, and web pages in your browser are refused. If something else uses port 8890, the sheet lets you pick another port; update your agent once.

What agents get

Deviceslist_devices connect_device set_device_proxy disconnect_device
Trafficsearch_traffic get_transaction clear_traffic send_request repeat_request compare_captures
Ruleslist_rules add_rule toggle_rule delete_rule set_throttle set_ssl_decrypt
Breakpointslist_paused wait_paused resume_paused abort_paused
Scenariosrecord_scenario list_scenarios replay_scenario stop_scenario delete_scenario
Resourceslynkei://status rules devices paused traffic
Promptsdebug_failing_endpoint mock_api_offline find_slow_calls

Safe by default

Authorization, cookies and API-key headers are hidden, and bodies are left out, unless the agent asks for them explicitly with include_secrets or include_bodies.

Check the setup

Terminal
/Applications/Lynkei.app/Contents/Helpers/lynkei-mcp doctor

It prints the binary, engine and socket it found. Agents work while Lynkei is open; close the app and they can't connect until you reopen it, with nothing to reconfigure.