Skip to main content

denario-mcp

A lightweight, local MCP client for Denario — an AI research assistant you drive from Claude. It runs on your machine and owns all local filesystem + git work; the private research pipeline runs remotely on Google Cloud Run and only ever returns generated data (text, PDFs), never source code.

Why a local client

Running project setup remotely could never create files on your own disk, and creating a GitHub repo from inside a container would use the server's GitHub identity, not yours. So all file and git work happens locally, under your own identity — only the confidential research compute itself is remote.

Install

pip install denario-mcp

Deliberately lightweight: it depends only on mcp and httpx, not on the Denario research stack itself — that stays entirely on the server.

git and the GitHub CLI (gh, signed in via gh auth login) are optional. Without them your project is still created and every generated file is still written to disk — only the git/GitHub side of a few tools is skipped.

Use with Claude Code

claude mcp add denario \
  -e DENARIO_API_KEY=denario_live_your_key_here \
  -e DENARIO_CLOUD_URL=https://denario-mcp-engine-tnf7nmfboa-uc.a.run.app \
  -- denario-mcp

Or, editing the MCP config by hand (~/.claude.json, or a project's .mcp.json):

{
  "mcpServers": {
    "denario": {
      "command": "denario-mcp",
      "env": {
        "DENARIO_API_KEY": "denario_live_your_key_here",
        "DENARIO_CLOUD_URL": "https://denario-mcp-engine-tnf7nmfboa-uc.a.run.app"
      }
    }
  }
}

Get an API key and the full walkthrough at denario-web.vercel.app/tutorial.

Tools

Tool Runs What it does
denario_setup Local Creates the project directory, data_description.md, and a local git repo with an initial commit.
denario_idea Local + remote Generates a research idea from data_description.md.
denario_methods Local + remote Generates the methodology from the data description + idea.
denario_evaluate Local + remote Evaluates an iteration's results and returns a decision: iterate (run denario_methods again) or write the paper.
denario_classify Local + remote Classifies the generated paper into arXiv categories.
denario_paper Local + remote Writes the paper and compiles it to PDF (~10 minutes).
denario_publish Local Updates README.md from the paper, commits, pushes, and enables GitHub Pages.
denario_status Local Reports which iterations exist and which is most complete.
denario_read_file Local Reads a file from the local project.
denario_list_files Local Lists files in the local project matching a glob pattern.

Every "local + remote" tool follows the same shape:

client (denario-mcp)                          server (Cloud Run)
  read local input file(s)
  POST /v1/compute/<step>  ─────────────────►   run the pipeline in an ephemeral dir
  ◄─────────────────────────────────────────    { artifacts, log[, result] }
  write artifacts into the local project dir
  git commit (and push, if enabled — see below)

The server never touches your disk or your git identity; this client owns both. Long steps (like denario_paper) are handled transparently whether the server runs them synchronously or as an async job it polls to completion — nothing to configure on your end.

GitHub integration is opt-in

By default, nothing is pushed to GitHub — every step commits locally only. Set DENARIO_GITHUB_PUSH=1 to have denario_setup create a GitHub repo under your own identity and have each step push after committing. denario_publish is the one exception: it always pushes, since publishing is an explicit action regardless of that setting.

Environment

Var Purpose Default
DENARIO_API_KEY Bearer token for the remote compute API. — (required for remote tools)
DENARIO_CLOUD_URL Base URL of the compute API. — (required for remote tools)
DENARIO_GITHUB_PUSH Opt in to automatic GitHub repo creation + pushes. off
GITHUB_ORG Org/account for created repos. ParallelScience
SCIENTIST_NAME Used in the derived repo slug + README. denario
DENARIO_MCP_LOG If set, log file path (keeps logs off stdout, which carries the MCP protocol). none
DENARIO_MCP_LOG_LEVEL Log level. INFO
DENARIO_BUILD_PAGE_SCRIPT Optional external script to build a GitHub Pages site for denario_publish. none
DENARIO_LIVE_TEST Set to 1 to run the opt-in live smoke test against a real deployment. unset

Development

pip install -e ".[test]"
python -m pytest -m "not live"

That last flag skips the one opt-in test that hits a real deployment (gated separately by DENARIO_LIVE_TEST=1, so it never runs by accident).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

denario_mcp-0.7.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

denario_mcp-0.7.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file denario_mcp-0.7.1.tar.gz.

File metadata

  • Download URL: denario_mcp-0.7.1.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for denario_mcp-0.7.1.tar.gz
Algorithm Hash digest
SHA256 692f6390fa84ada576cb9c33ea60de7f24b667551ac25ff7c5ca949d53dd170c
MD5 26e1413464cf96a0b8126f15d1e5174e
BLAKE2b-256 11dce188dcc7def7538813acf5486b19b5c8e0dd4a5936ac6ec1815435fde333

See more details on using hashes here.

File details

Details for the file denario_mcp-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: denario_mcp-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for denario_mcp-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 766841121df4787a45f65a0b5193c74248f302dea5be585b5ff637293317550d
MD5 a99a42b2143e034b596bbd73961ea8eb
BLAKE2b-256 5878c732019365fae9e95249c26b94457345a2a86e4538b21eed40b9ff0bf796

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.2

2 files

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.2.0

2 files

0.1.0

2 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