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.
Add the server to your agent
claude mcp add --transport http lynkei http://127.0.0.1:8890/mcp
{ "mcpServers": { "lynkei": { "url": "http://127.0.0.1:8890/mcp" } } }npx -y mcp-remote 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.

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
| Devices | list_devices connect_device set_device_proxy disconnect_device |
|---|---|
| Traffic | search_traffic get_transaction clear_traffic send_request repeat_request compare_captures |
| Rules | list_rules add_rule toggle_rule delete_rule set_throttle set_ssl_decrypt |
| Breakpoints | list_paused wait_paused resume_paused abort_paused |
| Scenarios | record_scenario list_scenarios replay_scenario stop_scenario delete_scenario |
| Resources | lynkei://status rules devices paused traffic |
| Prompts | debug_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
/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.