Skip to main content

nace-mcp

An MCP server for the Drex API: coding agents get calibrated decisions, document jobs, workspace search and browser runs as tools. MIT; built on nace-sdk.

nace-mcp login                           # or: uvx nace-mcp login; paste a key from https://console.nace.ai/dashboard/api-keys
claude mcp add nace -- uvx nace-mcp      # Claude Code

nace-mcp login checks the key against Drex and saves it to ~/.nace/config.toml (mode 0600), the file nace login from nace-cli writes too, so either signs in both. --api-key KEY passes the key, --api-key - reads it from stdin; without a terminal one of them is required. $NACE_API_KEY, $NACE_BASE_URL and $NACE_CONFIG_PATH in the server's environment override the file. Without a key the server still starts, and every tool answers with how to sign in until one is saved. The server reads the credentials on each call, so nace-mcp login while it runs, to sign in or to replace a refused key, needs no restart. nace-mcp --version prints the server and SDK versions.

Connect an agent

Each example passes your API key as NACE_API_KEY: replace nace_sk_... with a key from https://console.nace.ai/dashboard/api-keys, or leave the key out if you ran nace-mcp login.

Claude Code: claude mcp add nace --env NACE_API_KEY=nace_sk_... -- uvx nace-mcp.

Codex: codex mcp add nace --env NACE_API_KEY=nace_sk_... -- uvx nace-mcp (or a [mcp_servers.nace] table with command = "uvx", args = ["nace-mcp"] and env = { NACE_API_KEY = "nace_sk_..." } in ~/.codex/config.toml).

OpenCode (opencode.json): "mcp": {"nace": {"type": "local", "command": ["uvx", "nace-mcp"], "environment": {"NACE_API_KEY": "nace_sk_..."}, "enabled": true}}.

Pi: pi mcp add nace --env NACE_API_KEY=nace_sk_... -- uvx nace-mcp (writes ~/.pi/agent/mcp.json).

Hermes Agent: hermes mcp add nace --command uvx --env NACE_API_KEY=nace_sk_... --args nace-mcp, or in ~/.hermes/config.yaml:

mcp_servers:
  nace:
    command: "uvx"
    args: ["nace-mcp"]
    env:
      NACE_API_KEY: "nace_sk_..."

Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json) and Pi (~/.pi/agent/mcp.json):

{
  "mcpServers": {
    "nace": {
      "command": "uvx",
      "args": ["nace-mcp"],
      "env": { "NACE_API_KEY": "nace_sk_..." }
    }
  }
}

The agent starts the server, so a NACE_API_KEY exported in your shell doesn't reach it on its own; Hermes Agent passes a server only the variables under its env. To install it once instead of through uvx: pipx install nace-mcp (Python 3.11 or later), then use nace-mcp as the command.

Tools

Tool What it does
decide Answer typed questions (noul, choice, score) about text or JSON, and images with Drex Max, with calibrated probabilities.
list_models List the models decide can use.
upload_document Upload a local file into a workspace, or to the server without one.
parse_document Convert a document to Markdown, text or layout blocks.
split_document Cut a packet into segments, each with a class.
classify_document Label a document, or each page, with your classes.
extract_data Fill a JSON Schema, with a status and citation per field.
ground_items Find where each quote appears in a document.
get_job Read a job and a summary of its result.
wait_for_job Wait for a job to finish.
list_jobs List jobs, newest first.
cancel_job Cancel a running job, or drop a finished one from the list.
get_job_request The request a job ran under.
download_job_file Save a file a job produced.
get_job_rows Page through a parsed sheet's rows.
list_extraction_schemas List saved extraction schemas.
get_extraction_schema Read a saved schema, at its latest or a given version.
list_extraction_schema_versions List a saved schema's versions.
create_extraction_schema Save a new extraction schema.
add_extraction_schema_version Add a version to a saved schema.
delete_extraction_schema Delete a saved schema with every version.
create_workspace Create a workspace, optionally against a published domain_slug or in a ready storage_connection_id.
list_workspaces List the account's workspaces.
get_workspace Read a workspace and its settings.
workspace_stats Summarize what a workspace holds.
delete_workspace Delete a workspace and everything in it.
list_domains List the domains a workspace can classify its files against.
get_domain Read a domain with its taxonomy.
create_domain Create a draft domain of your own.
update_domain Rename a draft or replace its taxonomy.
publish_domain Freeze a draft so workspaces can use it.
duplicate_domain Copy a domain as a draft you can edit.
list_storage_connections List the account's own buckets and containers a workspace can keep its files in.
get_storage_connection Read a storage connection and its state.
create_storage_connection Create a draft connection to your own S3 bucket or Azure Blob container.
storage_connection_setup Read what to create in your cloud, saving the setup inputs first.
set_storage_connection_credentials Save the IAM role, or the Azure service principal (its secret read from a file or the environment).
validate_storage_connection Check that Nace can use a connection, and wait for the check.
get_storage_connection_validation Read a connection's latest validation, or wait for it.
revoke_storage_connection Stop Nace using a connection.
delete_storage_connection Delete a connection no workspace uses.
list_workspace_files List a workspace's files.
get_workspace_file Read a file, with links to its bytes, its metadata and its versions.
delete_workspace_file Delete a file from a workspace.
ingest_workspace Make a workspace's files searchable.
automatic_search Answer one question from a workspace's files, with cited evidence.
qa Ask one turn of a conversation about a workspace's files.
browser_run Give a cloud browser agent a task on the sites you allow, and wait for its answer.
get_browser_run Read a browser run, optionally waiting for it to end.
list_browser_runs List the account's browser runs, newest first.
cancel_browser_run Cancel a queued or running browser run.
get_documentation Usage notes for a topic, shipped with the server.

The document tools take one source: an https:// url, a local path (uploaded first), an uploaded file's workspace_id and file_id, or a finished parse's parse_job_id. They wait up to wait_seconds (60 at most) and return the job; one still running comes back with an instruction to call wait_for_job. Any other request field goes in a tool's options; an argument a tool doesn't have is refused rather than ignored. Results are summarised, and text or JSON longer than max_inline_chars is written to a file readable only by you, whose path is returned. For a document too large to return inline, parse_document saves the full Markdown to a file.

A workspace tool without workspace_id uses $NACE_WORKSPACE_ID, then the workspace nace workspace-use saved; with neither it asks for one.

Full documentation: MCP server.

Custom and on-prem servers

Set NACE_API_KEY and NACE_BASE_URL=https://nace.customer.example in the process using the CLI or MCP server; no login or profile is required. Environment values take precedence over saved configuration. Alternatively, nace login --base-url https://nace.customer.example --api-key - < key.txt validates and saves the key and actual server URL for both tools. For unattended profile use, mount a mode-0600 file and set NACE_CONFIG_PATH to it.

Metadata

Release files for nace-mcp 0.4.1

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

Source distribution (sdist)

Source distribution for nace-mcp 0.4.1
File Size Uploaded Provenance Actions
nace_mcp-0.4.1.tar.gz 64.9 kB With provenance Details for nace_mcp-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nace-mcp 0.4.1
File Interpreter ABI Platform Actions
nace_mcp-0.4.1-py3-none-any.whl Python 3 none any Details for nace_mcp-0.4.1-py3-none-any.whl

Total release size: 144.9 kB

Release files / nace_mcp-0.4.1.tar.gz

Download URL nace_mcp-0.4.1.tar.gz
Size 64.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c85b20008899acbbf6170152cc3ff8bc893974c9dc3259fd13bda6ced82d1b16
BLAKE2b-256 checksum
How to use checksums
7ea5069a3933557b5dd886c36a3e15e61e6020862c818f287a95cf4365e458b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / nace_mcp-0.4.1-py3-none-any.whl

Download URL nace_mcp-0.4.1-py3-none-any.whl
Size 80.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2d91403b4defcc02905039928fe4b0adaa22603805632285ef4ccf87b34a524
BLAKE2b-256 checksum
How to use checksums
00559a556c2261a7c617314098722fa7ecd6ffb9fb5719e31a0ab8f5027c72e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for nace-mcp 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nace_mcp-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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