---
title: "API & MCP Documentation | NeuraNidus"
description: "Reference documentation for the keyless NeuraNidus REST v1 API, NLWeb v0.55 search & SSE streaming, OpenAPI 3.1 schema, versioning policy, rate-limit headers, and Streamable HTTP MCP servers."
canonical: "https://neuranidus.com/docs"
last-updated: "2026-11-17"
---

# NeuraNidus API & MCP Documentation

NeuraNidus UG exposes a **zero-authentication (`security: []`)** public REST v1 API, NLWeb v0.55 natural-language search (JSON and Server-Sent Events), and two Streamable HTTP Model Context Protocol (MCP) servers on `https://neuranidus.com`. No API key, OAuth client, or account signup is required.

## Base URLs, OpenAPI & Discovery

- **Production API Server**: `https://neuranidus.com/api`
- **Sandbox API Server**: `https://neuranidus.com/api/sandbox` (deterministic synthetic request IDs, zero side effects; also selectable via `X-Sandbox-Mode: true`)
- **OpenAPI 3.1.0 Specification**: [https://neuranidus.com/openapi.json](https://neuranidus.com/openapi.json) (mirror: `https://neuranidus.com/api/openapi.json`)
- **RFC 9727 API Catalog**: [https://neuranidus.com/.well-known/api-catalog](https://neuranidus.com/.well-known/api-catalog)
- **Developer Portal & Quickstart**: [https://neuranidus.com/developers](https://neuranidus.com/developers) ([Markdown](https://neuranidus.com/developers.md))

## Authentication

All public read, NLWeb search, corpus export, inquiry validation, and MCP endpoints are **keyless (`0 EUR`)**. Send standard HTTPS requests without `Authorization` headers.

## REST v1 & NLWeb Endpoints

### 1. NLWeb v0.55 Grounded Search (`GET` / `POST /api/v1/ask` & `/api/ask`; `301` redirect alias `/ask`)

Query NeuraNidus corporate facts, German commercial register details (Amtsgericht Duisburg, HRB 39647), Nidal Apache-2.0 open-core licensing, privacy/legal disclosures, and API documentation. Every match includes character-offset `grounding.evidence` spans.

```bash
# JSON search (GET)
curl -s "https://neuranidus.com/api/v1/ask?query=What+license+does+Nidal+use&limit=3"

# Server-Sent Events streaming (POST)
curl -N -s -X POST "https://neuranidus.com/api/v1/ask" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -d '{"query":{"text":"federated edge orchestration"},"prefer":{"streaming":true,"limit":3}}'
```

When `streaming=true` (or `prefer.streaming: true`), `/api/v1/ask` streams `text/event-stream` frames (`event: start`, `event: result`, `event: complete`).

### 2. Cursor-Paginated Page Catalog (`GET /api/v1/pages`)

List verified HTML pages and `.md` Markdown twins with cursor pagination (`limit` 1–20, `cursor` from `pagination.nextCursor`, optional `section` filter: `company`, `product`, `docs`, `legal`).

```bash
curl -s "https://neuranidus.com/api/v1/pages?section=docs&limit=5"
```

### 3. Idempotent Contact Inquiry Validation (`POST /api/v1/inquiries/validate`)

Validate sender `name`, `email`, `category` (`nidal`, `engineering`, `partnership`, `investor`, `general`), and `message` without sending unsolicited email. Supports `Idempotency-Key` replay safety (`409 IDEMPOTENCY_KEY_CONFLICT` if a key is reused with different parameters) and returns human-confirmation links (`mailto:` and `https://neuranidus.com/contact`).

```bash
curl -s -X POST "https://neuranidus.com/api/v1/inquiries/validate" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: inq-demo-001" \
  -d '{"name":"Ada Lovelace","email":"ada@example.org","category":"nidal","message":"Evaluating Nidal Apache-2.0 edge orchestration for an industrial gateway fleet."}'
```

### 4. Asynchronous Markdown Corpus Exports (`POST /api/v1/exports` → `GET /api/v1/jobs/{jobId}`)

Start an asynchronous corpus export job (`202 Accepted` + `Location` polling header) and retrieve the completed Markdown bundle from `GET /api/v1/jobs/{jobId}`.

```bash
curl -i -s -X POST "https://neuranidus.com/api/v1/exports" \
  -H "Content-Type: application/json" \
  -d '{"section":"product"}'
```

## Versioning, Deprecation & Rate Limits

- **API Versioning**: Stable routes use URL major versioning (`/api/v1/...`) and emit `API-Version: 2026-11-01` on every response. Additive optional fields ship in-place; breaking changes increment `/api/v2/...`.
- **Sunset Policy**: Retiring endpoints emit RFC 8594 `Deprecation` and `Sunset` headers at least **180 days** before removal.
- **Rate-Limit Headers**: Every response includes `RateLimit-Limit: 120`, `RateLimit-Remaining`, `RateLimit-Reset`, and `RateLimit-Policy: 120;w=60` (best-effort per-worker sliding window of `120` requests per `60` seconds per client IP), plus `Retry-After` on HTTP `429`.

## Typed JSON Error Model

All REST v1, NLWeb, Sandbox, and OpenAPI `4xx` and `5xx` responses return `application/json` with `error.code`, `error.message`, `error.status`, `error.hint`, `error.requestId`, and `error.docsUrl`. Streamable HTTP MCP endpoints (`/api/mcp` and `/api/docs-mcp`) retain standard JSON-RPC 2.0 error envelopes (`jsonrpc: "2.0"`, numeric `error.code`, `error.message`) for MCP protocol compatibility and attach `{ code, status, hint, requestId, docsUrl }` inside `error.data` on HTTP transport errors:

- `MISSING_QUERY` (`400`): Empty or omitted NLWeb query text.
- `INVALID_LIMIT` / `INVALID_CURSOR` / `INVALID_SECTION` / `INVALID_SITE` (`400`): Out-of-range query parameter, unsupported `site` domain, or malformed cursor.
- `VALIDATION_ERROR` (`400`): Per-field inquiry validation issues listed in `issues[]`.
- `JOB_NOT_FOUND` (`404`): Unknown or expired export `jobId`.
- `METHOD_NOT_ALLOWED` (`405`): Unsupported HTTP verb (`Allow` header lists permitted methods).
- `IDEMPOTENCY_KEY_CONFLICT` (`409`): Reused `Idempotency-Key` with a modified request body.
- `PAYLOAD_TOO_LARGE` (`413`): Request payload exceeds `64 KiB`.
- `RATE_LIMITED` (`429`): Client exceeded `120` requests in `60` seconds.

## Streamable HTTP MCP Servers

NeuraNidus hosts two stateless Streamable HTTP MCP servers (`2025-11-25` and `2025-06-18`):

1. **Corporate & Nidal MCP (`https://neuranidus.com/api/mcp`)**
   - Server Card: [https://neuranidus.com/.well-known/mcp/server-card.json](https://neuranidus.com/.well-known/mcp/server-card.json)
   - Tools: `get_company_profile`, `get_nidal_licensing`, `search_neuranidus_catalog`, `validate_contact_inquiry`
2. **Documentation MCP (`https://neuranidus.com/api/docs-mcp`)**
   - Server Card: [https://neuranidus.com/.well-known/mcp/docs-server-card.json](https://neuranidus.com/.well-known/mcp/docs-server-card.json)
   - Tools: `search_documentation`, `fetch_documentation_page`
