Skip to main content

MCP

Nomic MCP server

The Nomic MCP server lets AI clients such as Cursor, Claude Code, and GitHub Copilot in VS Code work with your Nomic instance. From your editor or terminal you can:

  • Find files and projects, and run Nomic agents and workflows on them.
  • Wait for a run to finish, then read its answer and artifacts, or export a table to CSV or Excel.
  • If you are an organization admin, review spend, audit logs, users, and API keys.

The server uses the Model Context Protocol, so any client that supports remote MCP servers can connect. Clients sign in with your Nomic account in the browser, or send an API key with the same scopes and permissions as the Nomic HTTP API. The server is available on Business and Enterprise organization instances.

This page covers connecting outside tools to Nomic. To give the Nomic agent access to services such as Google Drive, Outlook, or Linear, see MCP Servers.

Before you begin​

You need:

  1. Your server URL. It is your Nomic address followed by /mcp, for example https://acme.drive.nomic.ai/mcp. Any member can find it, with sign-in steps for Claude, ChatGPT, Copilot, and Cursor, under Settings → Nomic MCP. The Developer → MCP page shows it with ready-to-copy API key configuration for Cursor, Claude Code, and VS Code.
  2. A way to authenticate. Most clients sign in with your Nomic account, so you need nothing else; see Sign in or use an API key. For scripts, headless agents, or admin tools, create an API key instead: open Developer → API Keys, select Create Key, give it a name such as "Cursor on my laptop", and keep the developer scope selected. Admins can add admin scopes as well; see Choose scopes. Copy the key when it appears. Nomic shows it only once.

Either way, the client acts as you. Every tool call runs with your project and file access, appears in the audit log under your name, and counts toward your spend.

Connection details​

SettingValue
Server URLhttps://<your-domain>.nomic.ai/mcp
TransportStreamable HTTP
AuthenticationOAuth sign-in, or an Authorization: Bearer npk_... header
OAuth metadatahttps://<your-domain>.nomic.ai/.well-known/oauth-protected-resource

HTTP Basic authentication also works, with the API key as the username and an empty password.

Sign in or use an API key​

When a client connects without an Authorization header, Nomic answers 401 and points it to the Nomic sign-in page. The client opens your browser, you sign in to Nomic as you do on the web, and the client stores the token and renews it on its own. Clients register themselves, so there is nothing to set up first.

Sign inAPI key
SetupNone. Sign in when the client asks.Create a key and put it in the configuration.
ToolsThe developer tools. No admin tools.Whatever the key's scopes allow.
Works inClients with a browser: editors, Claude, ChatGPTAnything, including CI and headless agents.
Stop accessRemove or log out of the server in the client.Revoke the key in Developer → API Keys.

A signed-in token works only for the instance you signed in to. You must have signed in to the Nomic website at least once before a client can sign you in.

Set up your client​

Each tab shows how to sign in first, then how to use an API key instead. The API key examples read the key from an environment variable named NOMIC_API_KEY, so it never lands in a file you might commit. Set it in your shell profile (~/.zshrc, ~/.bashrc, or your Windows environment variables), then restart the client so it picks the variable up:

export NOMIC_API_KEY="npk_..."

In each example, replace <your-domain> with your Nomic domain.

Sign in: add the server with only its URL, then select Connect next to nomic in Cursor's MCP settings and sign in when your browser opens.

~/.cursor/mcp.json
{
"mcpServers": {
"nomic": {
"url": "https://<your-domain>.nomic.ai/mcp"
}
}
}

API key:

  1. Open ~/.cursor/mcp.json to make Nomic available in every project, or .cursor/mcp.json in one project. Create the file if it does not exist.

  2. Add the nomic server:

    ~/.cursor/mcp.json
    {
    "mcpServers": {
    "nomic": {
    "url": "https://<your-domain>.nomic.ai/mcp",
    "headers": {
    "Authorization": "Bearer ${env:NOMIC_API_KEY}"
    }
    }
    }
    }
  3. Open Cursor's MCP settings and check that nomic is enabled and lists its tools.

If Cursor runs without your shell environment, for example when launched from the Dock on macOS, ${env:NOMIC_API_KEY} resolves to nothing and the server answers 401. Launch Cursor from a terminal, or put the key directly in ~/.cursor/mcp.json. Never put the key directly in a project's .cursor/mcp.json.

See Cursor's MCP documentation for more on configuration and tool approval.

Check the connection​

Ask your client:

Call the Nomic get_current_api_key tool and tell me who I'm signed in as and which tools I can use.

The answer names who you are signed in as, your scopes, and the tools you can call. If a tool you expect is missing, you do not have the scope for it. See Troubleshooting.

Examples​

You don't need to name tools. Describe the task and the client picks the tools. Every example on this page works with a key that has the developer scope.

Run an agent on project files​

The client finds the project and file, then calls run_agent, which starts a Nomic agent and waits for it to finish. The agent does the work inside Nomic with your project's drawings and specs, then the client reads the result.

CursorNomic MCP server

Have Nomic review the door hardware submittal for Linden Ridge against the spec and the door schedule, then export the results to Excel.

  1. list_projects{ "search": "Linden Ridge" }

    One match: Linden Ridge Elementary.

  2. search_files{ "query": "08 71 00-02" }

    Found Submittal 08 71 00-02 Door Hardware.pdf.

  3. run_agent{ "prompt": { "text": "Review Submittal 08 71 00-02 Door Hardware against spec section 08 71 00 and the door schedule on A-601. ..." }, "projectId": "0199a3f2-…", "fileIds": [ "0199a4c8-…" ] }

    Agent finished in 74 seconds and produced one table artifact.

  4. get_conversation{ "id": "0199b1e0-…" }

    Read the agent's answer: three sets deviate.

  5. export_artifact{ "id": "0199b1e0-…", "artifactId": "0199b1e7-…", "format": "xlsx" }

    Returned a download link, valid for five minutes.

Three hardware sets deviate: HW-4 at classrooms 112 and 114 has a storeroom lock instead of a classroom security lock, HW-2 at the library has no electrified hardware for its card reader, and HW-6 has a standard-duty closer. Nomic recommends Revise and resubmit. The Excel export is ready to download, and you can open the run in Nomic to check each citation.

Each agent run is a normal Nomic session. Open it at https://<your-domain>.nomic.ai/assistant/<agentId> to see what the agent read and check each citation. The run above looks like this in Nomic:

Continue a run​

Ask a follow-up and the client calls followup_and_wait with the same agent, so the agent keeps its earlier context:

Ask the Nomic agent from the submittal review to draft reviewer comments for each deviation.

More prompts to try​

  • "List my Nomic workflows and run the RFI response workflow on RFI-042.pdf in the Harbor Point project."
  • "Create a Nomic project called Riverside Clinic, project number 24-118, and add Dana and Sam as members."
  • "Show me my Nomic agents that failed this week and what went wrong."
  • "How much did my last Nomic agent run cost?"

For admin examples, such as reviewing spend or disabling a user, see MCP for IT and admins.

Prompts​

The server also publishes prompts, ready-made instructions that walk the client through a task. Clients usually list them as slash commands. In Claude Code, for example, type /mcp__nomic__orchestrate-agent. A prompt appears only when your key can call every tool it uses. See Prompts for the full list.

Approvals and safety​

Nomic marks each tool as read-only, write, or destructive, and most clients ask before running a tool that makes changes. Keep those approvals on. Approve writes such as run_agent or create_project knowingly, and read destructive calls such as delete_agent or disable_user carefully before you allow them.

Documents and agent answers returned to your client can contain text that reads like instructions. Check what a tool call will do before you approve it, especially when other MCP servers are connected in the same session.

Create one key per client or automation. You can then revoke a single laptop without breaking the others.

Troubleshooting​

401 Unauthorized when connecting​

With an API key, the key is missing, mistyped, revoked, or expired. Check that the header reads exactly Authorization: Bearer npk_.... If the configuration reads the key from an environment variable, check that the client was started from an environment where it is set.

When signing in, the client's token expired and could not be renewed, or it was issued for another Nomic instance. Log out of the server in the client and sign in again.

403 Forbidden when connecting​

The key or token is valid, but the account is disabled or belongs to another organization. Ask an admin. If the message asks you to sign in to the Nomic website once, do that, then connect again.

The client opens a browser sign-in when you meant to use a key​

The client did not send the Authorization header, so it started the sign-in. Compare your configuration with the API key examples. If the header reads the key from an environment variable, check that the variable is set.

A tool is missing​

Tools appear only when the key's scopes allow them. Admin tools also require the key's owner to be an organization admin. Call get_current_api_key to see what the key can do. After changing scopes or keys, reconnect the server so the client reloads the tool list.

run_agent returned timedOut: true​

A single call waits up to 14 minutes. The agent keeps running. Ask the client to call wait_for_agent with the returned agentId. Do not start the agent again.

A call failed with rate_limited​

Wait for the number of seconds in retryAfterSec, then retry. Starting agents, follow-ups, uploads, parse jobs, and artifact exports share a budget of 30 per minute. See Rate limits.

A call failed with payment_required​

You or your organization reached a spend limit. Ask an admin.

An upload is rejected as too large​

upload_file sends the file inline and accepts files up to 15 MB. Upload larger files in the Nomic app, or with POST /api/v0/files/upload.

Long calls drop behind a corporate proxy​

Tool calls that wait on an agent stream their response for up to 15 minutes. Your network must allow long-lived HTTPS responses from your Nomic domain.