Skip to main content

Lattice MCP Server

Automates Lattice HR objectives (create, update, delete, list) via browser session replay. No API key required — authenticates through SSO and persists the session for headless Playwright reuse.

Prerequisites

  • Python 3.10+
  • Chrome/Chromium (for SSO login)
  • A display environment (local machine or X-forwarded) for initial login

Installation

pip install lattice-mcp
playwright install chromium

Authentication

The server uses a saved Playwright browser session (~/.config/lattice/browser-state.json). You must log in once via SSO to create it.

Option A: Local machine with a display

lattice ui login

A Chromium window opens — complete your SSO login. The window closes automatically once authenticated and the session is saved. The session is reusable until it expires on Lattice's side (typically days to weeks).

Option B: Headless server (attach to running Chrome)

# On a machine with a display, start Chrome with remote debugging:
google-chrome --remote-debugging-port=9223 --user-data-dir=/tmp/chrome-lattice --no-first-run &

# Complete SSO in that browser, then capture the session:
lattice ui login --cdp-url http://127.0.0.1:9223

Session expiry

If tools return "Session expired", re-run lattice ui login.

MCP Server Setup (Claude Code)

Add to your project's .mcp.json:

{
  "mcpServers": {
    "lattice": {
      "command": "lattice-mcp"
    }
  }
}

Restart Claude Code to load the server. The tools appear as lattice_* in your session.

Available Tools

Tool Description
lattice_session_status Check if the browser session is active
lattice_objectives List active objectives for a user (defaults to you)
lattice_create_objective Create a new objective (title, optional priority/due date)
lattice_update_objective Post a status update + comment to an objective
lattice_delete_objective Delete an objective by entityId
lattice_scrape Scrape any Lattice page and return visible text

Example usage (via Claude Code)

> list my lattice objectives
> create a lattice objective titled "Ship feature X"
> update objective <entityId> status green comment "Merged PR, deploying tomorrow"
> delete objective <entityId>

Multi-server workflow (with Jira MCP)

If you also have a Jira MCP server in your session, you can chain them:

> fetch PLAT-0000 and PLAT-0001 from jira, then create lattice objectives from their summaries

Claude calls the Jira server to get ticket details, then calls lattice_create_objective for each — no glue code needed.

How It Works

  1. Tools launch headless Chromium with the saved session cookies
  2. Navigate to the relevant Lattice page
  3. Interact with the UI (fill forms, click buttons) via Playwright
  4. GraphQL mutations fire as a side-effect of the UI interaction
  5. Cloudflare passes because the session includes valid clearance cookies

There is no direct API access — Lattice does not issue API keys to non-admins. See DESIGN.md for the full decision log.

Troubleshooting

Problem Fix
"No browser session" Run lattice ui login
"Session expired" Re-run lattice ui login
Cloudflare blocks (403) Session stale — re-login to get fresh cf_clearance cookies
Tool times out Lattice page may be slow; try again
Create succeeds but objective not visible Check the "All time" filter on /goals — it may default to current quarter

Metadata

Release files for lattice-mcp 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lattice-mcp 0.1.6
File Size Uploaded
lattice_mcp-0.1.6.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lattice-mcp 0.1.6
File Interpreter ABI Platform
lattice_mcp-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 33.9 kB

Release files / lattice_mcp-0.1.6.tar.gz

Download URL lattice_mcp-0.1.6.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
523ae6b7c6f03a93c4fd059f77189981fa2363e81cfc5f006e1098afdeef231b
BLAKE2b-256 checksum
How to use checksums
ccec25c9a8eb29d65277ec3f4bbf65dcbed4248ad08e0427bfe191c20117a7c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / lattice_mcp-0.1.6-py3-none-any.whl

Download URL lattice_mcp-0.1.6-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7582452fc4eec93e6cd7ff3ea0bf6b4b1eae1a9ef3a386d3a53dd2e46708639f
BLAKE2b-256 checksum
How to use checksums
95f198a99337bc2c79f9495cd8982a6764b212e2c4a0fb6facf4e33cd8c9a61d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

1.0.0

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

This release

0.1.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page