nav-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AES_KEY | No | Random 32-byte key in hexadecimal (64 characters) used to encrypt/decrypt saved login profiles. Can be provided in the process environment or a local .env file. Use the same key to read previously saved profiles. | |
| NAV_MCP_UPLOAD_DIR | No | Absolute path to a dedicated folder for files to attach. Defaults to the uploads/ folder relative to the server working directory. | |
| NAV_MCP_PROFILE_DIR | No | Absolute path to the folder where login profiles are stored. Defaults to .playwright-profiles/ in the server working directory. | .playwright-profiles/ |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Open a browser session and a tab, then navigate and inspect the tab before acting. Use element refs from get-page-snapshot with its snapshotId. Refresh the snapshot after navigation or a stale ref. After an action, verify the result using a new snapshot, page info or list-pages. If submission is uncertain, inspect before retrying. For authenticated work, list profiles and open a named session with the correct profile. Pass its sessionId to tab tools, including each go-to request. If login is needed, start a recording and ask the user to log in and confirm in the separate browser window. Check recording status for saved. Do not request credentials in chat or fill them for the user. Use upload-files only with files the user has selected for the current destination. Some websites transmit the file as soon as it is selected.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create-sessionB | Open or reuse a browser session. Pass a unique sessionId for each account and a saved profile ID to authenticate. |
| list-sessionsA | List active browser session IDs and their saved profile IDs. |
| list-auth-profilesA | List saved authentication profiles by ID, category, label and application origin. Report unreadable profile IDs separately. |
| start-auth-recordingC | Open a separate browser window for the user to log in and confirm saving the authentication profile. |
| get-auth-recordingB | Check whether the user is still authenticating, has saved the profile or has cancelled. |
| close-sessionB | Close the browser session and all its tabs. |
| new-pageB | Open a blank tab and return its page ID. |
| list-pagesB | List tab IDs, including tabs opened by the website, URLs, context notes and closed status. |
| add-page-contextB | Set a context note for a tab. It is returned by list-pages. |
| go-toA | Navigate one or more tabs. Use each page ID once per call. Distinct tabs navigate in parallel. |
| clickC | Click an element identified by a snapshot reference, a label, or a role and accessible name. |
| fillB | Replace the value of an input, textarea, or editable element. Use an empty string to clear it. |
| set-checkedC | Set the checked state of a checkbox or radio button. |
| select-optionC | Choose an option in a native dropdown using its label or value. |
| upload-filesA | Attach staged local files to a file input. Use chooser for a button that opens the browser file chooser. The site may upload the files immediately. |
| get-page-infoA | Read the current URL and title of a tab. |
| get-page-snapshotB | Read a tab's accessibility snapshot, including element references and the snapshot ID needed to act on them. |
| get-page-htmlB | Read a chunk of the current HTML. Use nextOffset to read the next chunk while the page remains unchanged. |
| get-page-screenshotC | Capture a PNG screenshot of the tab viewport. |
| get-element-infoB | Read text, visibility, enabled state and bounds of elements matched by snapshot reference, label, or role and name. |
| get-element-snapshotB | Read the accessibility snapshot of one element. Use get-page-snapshot for actionable references. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
The tools are mostly separated by clear resource and action: session management, auth recording, tabs, interactions, and page/element inspection. The main overlap is among the read tools such as get-page-snapshot, get-page-html, get-page-info, get-element-info, and get-element-snapshot, but their descriptions make the distinctions reasonably clear.
All tool names use kebab-case and generally start with an action verb, which makes the set predictable. There are minor deviations like bare click/fill and the less structured go-to, but the overall convention is consistent.
At 21 tools, the surface is somewhat large but appropriate for a browser automation server that covers sessions, auth, tabs, interactions, and inspection. Each tool maps to a concrete operation, though some inspection tools could potentially be consolidated.
The server covers core browser automation workflows: session/auth handling, tab management, clicking, filling, selecting, uploading, and reading page state. However, common operations such as closing individual tabs, keyboard key presses, hover, drag/drop, reload/back/forward, and explicit waiting are missing, creating notable gaps.