Model Context Protocol (MCP) Streamable HTTP
Discover capabilities statelessly via server/discover or initialize a session at https://natrium.sh/api/mcp. The SEP-1649 Server Card is published at /.well-known/mcp/server-card.json and /.well-known/mcp.json.
Public read-only tools such as ask and verify_content_safety as well as the MCP App HTML card at ui://natrium/status-card.html require no bearer token. Mailbox operations require an OAuth 2.0 Bearer token or scoped API key.
curl -sS https://natrium.sh/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover"}'
curl -sS https://natrium.sh/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'Search for Agents & NLWeb Ask Endpoint
Instead of fetching multiple HTML pages, agents can query the lightweight Markdown search index at https://natrium.sh/.well-known/search?q={query} or retrieve Schema.org structured answers from https://natrium.sh/ask?query={query}&streaming=false.
curl -sS "https://natrium.sh/.well-known/search?q=encryption"
curl -sS "https://natrium.sh/ask?query=what+does+this+site+offer&streaming=false"REST API & JavaScript Integration
The OpenAPI 3.1 schema at https://natrium.sh/openapi.json and the RFC 9727 catalog at /.well-known/api-catalog describe every public endpoint, authentication scope, and schema. Read the Agent Auth guide for OAuth 2.0 ID-JAG and ephemeral token exchange.
const res = await fetch('https://natrium.sh/ask?query=pricing&streaming=false');
const data = await res.json();
console.log(data.results.map((item) => item.name));API Versioning, Pagination & Async Jobs
- Versioning & Deprecation Policy: Responses carry
API-Version: 1.0.0matching OpenAPIinfo.version. Breaking changes increment the major version; deprecated endpoints emit RFC 9745Deprecationand RFC 8594Sunsetheaders with at least 90 days advance notice. - Pagination:
GET /api/emailsacceptslimit,offset, andcursorparameters and returnsnextCursorandhasMore. - Async Jobs & Idempotency: Mutating
POSTroutes acceptIdempotency-Key. Sending{"async": true}toPOST /api/v1/sandboxreturns202 Acceptedwith aLocationheader andpollUrlatGET /api/v1/jobs/{jobId}. - MCP Apps / Generative UI: Both Docs MCP and Mail MCP expose interactive HTML views at
ui://natrium/status-card.html(text/html;profile=mcp-app).
CLI Installer & Repository Source
On Linux, install the official Natrium launcher and update utility (natrium) directly from https://natrium.sh/install.sh, or browse all signed desktop and mobile binaries on the Downloads page. Source code is hosted on GitHub (NatriumTechnologies/natrium-server).
curl -fsSL https://natrium.sh/install.sh | bash
natrium --check-updateMachine-Readable Specifications Index
All machine-readable manifests return permissive CORS headers and structured JSON or Markdown payloads.
{
"openapi": "https://natrium.sh/openapi.json",
"mcp": "https://natrium.sh/api/mcp",
"mcpServerCard": "https://natrium.sh/.well-known/mcp/server-card.json",
"a2aAgentCard": "https://natrium.sh/.well-known/agent-card.json",
"webmcp": "https://natrium.sh/.well-known/webmcp.json",
"nlwebAsk": "https://natrium.sh/ask?query=what+does+this+site+offer&streaming=false",
"searchForAgents": "https://natrium.sh/.well-known/search?q=security",
"aiCatalog": "https://natrium.sh/.well-known/ai-catalog.json"
}