MCP server for Lcontext - gives AI coding agents real user behavior data to build better software
MCP server for Lcontext - gives AI coding agents real user behavior data to build better software. The lcontext mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 10 defined tools rather than through you.
The product analytics agent for your AI coding tools. Lcontext studies how users navigate your product, where they engage, hesitate, and drop off, and delivers behavioral context via MCP.
Everything the assistant can do here goes through one of these:
get_page_context — Get comprehensive analytics context for a page including stats, visitor metrics, Web Vitals (LCP, FCP, FID, CLS), and all interactive elements withlist_pages — The list_pages tool exposed by this serverget_element_context — Get detailed analytics for a specific interactive element by its label or IDget_app_context — Get application-wide analytics including sessions, visitors, page views, engagement metrics, device breakdown (mobile/tablet/desktop), top browsersget_visitors — Get a list of visitors with AI-generated profiles, interests, engagement trends, segment assignments, device info (type, browser, OS), and locationget_visitor_detail — Get detailed profile and recent sessions for a specific visitor, including device info (type, browser, OS) and locationget_sessions — Get a list of user sessions with AI-generated summaries, titles, sentiment analysis, and device typeget_session_detail — Get detailed information about a specific session including full event timeline, visitor context, device type, and location (city, region, country)get_user_flows — Get automatically detected user journey patterns showing how users navigate through the application. Each flow represents a common page sequence withget_analysis — Get a pre-computed daily or weekly analysis report. Contains problem areas, funnel health, session findings, and prioritized recommendations — allInstallation goes through your MCP client rather than a global install: point it at lcontext-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
You will need 2 environment variables: LCONTEXT_API_KEY, LCONTEXT_API_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of browser automation servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Lcontext's toolset — get_page_context, list_pages, get_element_context and 7 more — is a fair guide to whether it matches your workflow. It is maintained by lcontext; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| get_page_context | Get comprehensive analytics context for a page including stats, visitor metrics, Web Vitals (LCP, FCP, FID, CLS), and all interactive elements with their engagement data. |
| list_pages | The list_pages tool exposed by this server. |
| get_element_context | Get detailed analytics for a specific interactive element by its label or ID. |
| get_app_context | Get application-wide analytics including sessions, visitors, page views, engagement metrics, device breakdown (mobile/tablet/desktop), top browsers, top OS, Web Vitals (LCP, FCP, FID, CLS), and AI-generated insights. |
| get_visitors | Get a list of visitors with AI-generated profiles, interests, engagement trends, segment assignments, device info (type, browser, OS), and location (city, region, country). |
| get_visitor_detail | Get detailed profile and recent sessions for a specific visitor, including device info (type, browser, OS) and location. |
| get_sessions | Get a list of user sessions with AI-generated summaries, titles, sentiment analysis, and device type. |
| get_session_detail | Get detailed information about a specific session including full event timeline, visitor context, device type, and location (city, region, country). |
| get_user_flows | Get automatically detected user journey patterns showing how users navigate through the application. Each flow represents a common page sequence with engagement metrics and drop-off points. |
| get_analysis | Get a pre-computed daily or weekly analysis report. Contains problem areas, funnel health, session findings, and prioritized recommendations — all referencing specific page paths, element IDs, and session IDs you can inv |
{
"mcpServers": {
"lcontext": {
"command": "npx",
"args": ["-y", "lcontext-mcp"],
"env": {
"LCONTEXT_API_KEY": "your-value",
"LCONTEXT_API_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| LCONTEXT_API_KEY | Credential the server authenticates with. | Yes |
| LCONTEXT_API_URL | Endpoint or connection string the server talks to. | Yes |
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
Industrial-strength web extraction — render, scrape, crawl and search entire sites into clean markdown.
The original Chromium automation reference server — simple, screenshot-driven browser control.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.