Notanda (Beta)

io.github.RudiRegenwurmPublished by GitHub account RudiRegenwurmv0.1.0-beta.3Updated Oct 24, 2026

Every OpenAlex search stores its request, response and checksums so sources can be checked later.

Overview

AI-generated overview

Local stdio MCP server that searches OpenAlex for open-access works and stores each search with hashes so results can be verified later.

What you can do
  • Search OpenAlex literature for open-access works with a DOI, saving the request, provider response and hashes under one evidence ID
  • Retrieve a stored result by evidence ID and re-check its hashes without repeating the provider request
  • Optionally compare a caller-held receipt to detect replacement of payloads together with their manifest
  • Return structured error states such as configuration, provider, integrity and receipt mismatches
When to use it
Useful when an assistant needs literature lookups whose sources can be audited afterwards, for example in research or reproducibility work where you want a stored, hash-checked record of each OpenAlex query rather than a one-off answer.
Requirements
Python 3.11 or 3.12, or uvx with Python 3.12; the notanda-mcp package (pinned to notanda 1.3.2) and a writable absolute evidence directory passed as an argument. An OpenAlex API key must be set in the local environment as HARVESTER_OPENALEX_API_KEY. Network access to the OpenAlex works endpoint is required. Desktop only, stdio transport.
Before you install
The OpenAlex API key (HARVESTER_OPENALEX_API_KEY) is required and should be set in the environment, not in command arguments or evidence directories. Searches write evidence files to the configured directory. The manifest is not a digital signature: without a caller-held receipt, coordinated replacement of payloads and manifest is not detected. Titles and metadata are unverified third-party content. The server is in beta and external acceptance testing is still pending.

Installation

In SourceWeft

  1. Open Notanda (Beta) in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Notanda local MCP server — Beta

Every OpenAlex search stores its request, response and checksums so sources can be checked later.

Beta: an external developer's unassisted acceptance test is still pending. Technical tests do not replace that external usability and installation check.

This directory exposes Notanda's provenance-aware OpenAlex retrieval to local MCP clients. It is a separate notanda-mcp package, not a hosted service and not part of the notanda 1.3.2 package. It depends on that released core.

The component provides exactly two tools:

  • search_literature: search OpenAlex for OA works with a DOI and persist the request, provider observation, returned result and hashes under one evidence ID; the returned receipt is the SHA-256 of manifest.json.
  • get_evidence: verify those hashes and return the original result by evidence ID without repeating the provider request. An optional caller-held receipt also detects replacement of the payloads together with their manifest.

Both tool descriptions and every successful response warn that titles and metadata are unverified third-party content, not instructions.

It does not download full text, write to the Notanda corpus or Evidence Ledger, modify the web UI, expose a network server, or provide general agent reasoning.

Provenance and status

The implementation is adapted from the isolated branch experiment/local-mcp, commit 366bc2d4827aa915e2e58a82cd567163ed63d4be. The sealed handoff package bound that source to 20 passing MCP tests and a successful live OpenAlex run. For the public repository integration, the duplicated Notanda runtime was replaced by the released notanda==1.3.1 PyPI dependency. Beta 3 updates that pin to notanda==1.3.2; MCP remains pinned to the tested SDK version 1.30.0. SOURCE_PROVENANCE.json records the source hashes and the deliberate integration changes in machine-readable form.

Five of the six original acceptance criteria are technically satisfied. The sixth — an external developer with no Notanda knowledge completing installation, search, restart and independent verification without assistance — remains externally to be verified until that result is returned.

Install the Beta package

Use Python 3.11 or 3.12. A dedicated virtual environment is recommended:

bash
python -m venv .venv-mcp# Linux/macOS:. .venv-mcp/bin/activate# Windows PowerShell instead:# .venv-mcp\Scripts\Activate.ps1python -m pip install "notanda-mcp==0.1.0b3"

Beta 3 requires exactly notanda==1.3.2. Installing it into an environment already containing that version preserves the core version. Beta 2 requires notanda==1.3.1 and pip may downgrade an existing 1.3.2 installation to satisfy that pin. Use a separate environment if you need Beta 2 or a different Notanda core version; do not bypass dependency checks. The exact pin keeps the tested core/server combination reproducible; it does not promise compatibility with future core releases.

For a client that uses uvx, configure this command and arguments (replace the evidence directory with a writable absolute path on your computer):

text
uvx --python 3.12 [email protected] --evidence-dir ABSOLUTE_LOCAL_EVIDENCE_PATH

Set HARVESTER_OPENALEX_API_KEY in the MCP client's local environment. The key is required for searches and must not be placed in the command arguments. The registry manifest declares this variable as secret and the evidence path as a required input.

Install from this repository

Use Python 3.11 or 3.12. From the repository root:

bash
python -m venv .venv-mcp# Linux/macOS:. .venv-mcp/bin/activate# Windows PowerShell:# .venv-mcp\Scripts\Activate.ps1python -m pip install -e ./mcp

This installs the MCP component from the checkout and resolves the reviewed Notanda core as notanda==1.3.2 from PyPI.

Configure an OpenAlex API key locally. For example, in PowerShell without placing the key in terminal history:

powershell
$mcpSecureKey = Read-Host 'OpenAlex API key' -AsSecureString$env:HARVESTER_OPENALEX_API_KEY = [System.Net.NetworkCredential]::new('', $mcpSecureKey).Password

The existing Notanda configuration mechanisms also work: HARVESTER_CONFIG or HARVESTER_OPENALEX_API_KEY. Never add credentials to evidence directories, Git, screenshots or returned test reports.

Run and verify

The supplied real stdio client starts the server, initializes MCP, verifies the two tool names and executes a search:

bash
python mcp/tools/mcp_client.py \  --evidence-dir ./tmp/mcp-evidence \  --query "scientific reproducibility" \  --limit 2

The response contains an evidence_id and a receipt. Keep both outside the evidence directory. A second process can verify that receipt and retrieve the stored response without another provider request:

bash
python mcp/tools/mcp_client.py \  --evidence-dir ./tmp/mcp-evidence \  --id EVIDENCE_ID \  --receipt RECEIPT

For compatibility, get_evidence also works without receipt and performs the previous payload hash and identity checks. Those checks detect corruption, but a coordinated replacement of payloads and manifest is detectable only when the original receipt is supplied.

The independent verifier uses only the Python standard library:

bash
python -S mcp/tools/verify_mcp_evidence.py \  ./tmp/mcp-evidence/EVIDENCE_ID

For another local MCP client, configure the virtual environment's notanda-mcp executable with these arguments:

text
--evidence-dir ABSOLUTE_LOCAL_EVIDENCE_PATH

Transport is stdio. The server has no user interface and opens no listening port.

Evidence contract

Each search creates one directory named by its 32-character evidence ID:

FileContents
request.jsonsupplied and effective query, limit, MCP client name/version, source experiment commit, installed Notanda version and server hash
provider.jsonattempted OpenAlex URL after secret redaction, timestamps, HTTP status and captured parsed JSON
response.jsonthe persisted result, including structured failures and the untrusted-content notice; the detached receipt is added to the MCP response after sealing
manifest.jsonbyte length and SHA-256 for the three payload files

The manifest alone detects corruption or one-file modification. It is not a digital signature and, without a caller-held receipt, does not detect coordinated replacement of payloads and manifest. Comparing the optional receipt anchors the exact manifest observed during the original search.

Limits and failure behavior

  • Query length: 1–1000 characters. Result limit: integer 1–10.
  • One OpenAlex request, no pagination, no automatic retry.
  • 20-second operation timeout, 10-second connection timeout, 4 MiB response ceiling.
  • Only https://api.openalex.org/works is accepted as the provider endpoint.
  • Missing key: configuration_error; invalid input: invalid_arguments.
  • Provider/transport failure: provider_error; no provider exception text is stored.
  • Interrupted write: incomplete; hash or identity mismatch: integrity_failure; supplied receipt mismatch: receipt_mismatch.
  • Provider text is persisted as untrusted data, never interpreted as instructions.

Tests

Install the development extra and run the 23 deterministic checks:

bash
python -m pip install -e "./mcp[dev]"python -m pytest mcp/tests

The tests cover successful retrieval, restart, independent verification, corruption, invalid input, HTTP 401/429/500, timeouts, malformed and oversized responses, storage failure, process death, secret redaction and real two-process stdio MCP operation.

Source: mcp/README.md at commit 7eab3b0

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

3
  1. v0.1.0-beta.3LatestOct 14, 2026
  2. v0.1.0-beta.2Oct 2, 2026
  3. v0.1.0-beta.1Sep 25, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts