Lagsmith MCP Server
Let AI agents slow down, break or mock one app's network on a Mac, including iOS Simulator apps.
Lagsmith scores 66 (Good), licensed MIT and written in Swift. It installs as a local process. It declares 9 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 138 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "shabbirv-lagsmith-mcp": { "command": "npx", "args": [ "-y", "lagsmith-mcp@1.0.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools9Tool docs quality grade D
All capabilitiesclear_endpointstoolRemove endpoint failures and mocks
fail_endpointtoolMake one endpoint fail while the rest works
get_requeststoolThe app's recent HTTP requests, newest first
list_targetstoolRunning simulators and their apps, running Mac apps, presets and current rules
mock_endpointtoolAnswer one endpoint with a made-up response
relaunch_apptoolRelaunch a simulator app with request monitoring
reset_networktoolBack to full speed; the app stays watched
set_networktoolSlow down or break one app's network
stop_watchingtoolTurn the app's rule off entirely
About
Lagsmith MCP server
Let your AI coding agent test your app on bad networks. This MCP server lets Claude Code, Cursor, Codex, Claude Desktop, Windsurf and other MCP clients slow down, break and mock the network of one app at a time on your Mac, including iOS Simulator apps, using Lagsmith. Only the app under test is affected, so the agent's own connection, your terminal and your test runners stay at full speed.
With it, an agent can:
- throttle one app to 3G, Edge, LTE or Very Bad Network, or set exact bandwidth, latency, jitter and packet loss
- put one simulator app in Airplane Mode: requests fail with
NSURLErrorNotConnectedToInternet(-1009), andNWPathMonitorandSCNetworkReachabilityreport no network, like on a real device - refuse, time out or drop connections, or take the app offline and back again on a loop
- make one API endpoint fail or return a made-up response while the rest of the app works
- read the app's recent HTTP requests with status, timing and bodies, to see what actually broke
Requirements
- macOS 13 Ventura or later, on Apple silicon or Intel
- Lagsmith in your Applications folder, running, with Allow Automation on (menu bar icon › Automation). Automation, including MCP, is part of Lagsmith Pro, and every install starts with a free 14-day Pro trial. See pricing.
- Node.js 18 or later for the
npxsetup below, or skip Node and use the server inside the app
Setup
Claude Code
claude mcp add --scope user lagsmith -- npx -y lagsmith-mcp
--scope user makes Lagsmith available in every project. Start a new session and run /mcp to check it's connected.
Cursor, Claude Desktop, Windsurf, Cline and other JSON configs
{
"mcpServers": {
"lagsmith": {
"command": "npx",
"args": ["-y", "lagsmith-mcp"]
}
}
}
| Client | Config file |
|---|---|
| Cursor | ~/.cursor/mcp.json, or .cursor/mcp.json in a project |
| Claude Desktop | Settings › Developer › Edit Config, then restart Claude Desktop |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Cline | MCP Servers icon › Configure › Configure MCP Servers (opens cline_mcp_settings.json) |
If the file already has other servers, add the lagsmith entry inside the existing mcpServers section.
Codex
In ~/.codex/config.toml:
[mcp_servers.lagsmith]
command = "npx"
args = ["-y", "lagsmith-mcp"]
Without Node.js
The same server ships inside the app, so you can point any client straight at it:
claude mcp add --scope user lagsmith -- /Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp
In JSON configs, use "command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp" with no args.
Tools
| Tool | What it does | Main parameters |
|---|---|---|
list_targets | Running simulators and their apps, running Mac apps, presets and current rules | none |
status | Every rule, what it's doing, and whether the proxy is running | none |
set_network | Slow down or break one app's network | app, simulator; preset, or down/up (kbps), latency/jitter (ms), loss (%); failure (airplane, refuse, timeout, drop, outages); hosts, hosts_mode |
reset_network | Back to full speed; the app stays watched | app, simulator |
stop_watching | Turn the app's rule off entirely | app, simulator |
relaunch_app | Relaunch a simulator app with request monitoring | app, simulator |
get_requests | The app's recent HTTP requests, newest first | app, simulator, limit, filter (e.g. is:failed, status:5xx), include_bodies |
fail_endpoint | Make one endpoint fail while the rest works | app, simulator, pattern, kind (offline, timeout, status, delay), value |
mock_endpoint | Answer one endpoint with a made-up response | app, simulator, pattern, status, body, content_type, delay |
clear_endpoints | Remove endpoint failures and mocks | app, simulator, pattern |
For simulator apps, pass simulator: "booted", a device name or a UDID. Leave simulator out for a Mac app.
Example prompts
- "Relaunch the app on 3G with monitoring, sign in, and list requests slower than two seconds."
- "Put the app in Airplane Mode and check that the offline banner appears."
- "Make POST /v1/orders return 500 and check the app shows a retry button."
- "Run the checkout UI tests on 3G with the payments API returning 503s, and tell me what breaks."
See a full example session in the MCP docs.
How it works
lagsmith-mcp speaks MCP over stdio and turns each tool call into a request to Lagsmith's automation server on 127.0.0.1:47300 (set LAGSMITH_PORT to change the port). It's one dependency-free Swift file: Sources/lagsmith-mcp.swift, the same source that's built into the app.
The npm package is a small launcher. It runs the server inside your installed copy of Lagsmith, so the server always matches your app version. If Lagsmith isn't installed, the launcher still answers with the list of tools, and every tool call explains how to install the app. If your copy of Lagsmith isn't in /Applications or ~/Applications, set LAGSMITH_APP to its path.
To build the server yourself:
xcrun swiftc -O -o lagsmith-mcp Sources/lagsmith-mcp.swift
Privacy
Everything runs on your Mac. The requests Lagsmith slows down, mocks or shows you are never sent anywhere. Lagsmith's anonymous usage statistics count which features are used, including tool calls through MCP. They never include your apps' traffic. See the privacy policy. What your AI agent does with what it reads is governed by that agent's own privacy policy.
Links
License
This repository, the MCP server and its npm launcher, is under the MIT License. The Lagsmith app itself is proprietary: see the terms.
Frequently asked questions
What is Lagsmith MCP Server?
Let AI agents slow down, break or mock one app's network on a Mac, including iOS Simulator apps.
How do I install Lagsmith MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Lagsmith MCP Server runs locally from the npm package lagsmith-mcp with the command npx -y lagsmith-mcp@1.0.1.
Is Lagsmith MCP Server free and open source?
Yes. Lagsmith MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Lagsmith MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Lagsmith MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Lagsmith MCP Server provide?
Lagsmith MCP Server provides 9 tools, including clear_endpoints, fail_endpoint, get_requests, and list_targets. See the full tool list for descriptions and parameters.
How is Lagsmith MCP Server's trust score calculated?
Lagsmith MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.