Back to Browse

Ossian MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Ask your own documents with citations, plus durable memory for agents. Safe by default.

About

Ask your own documents with citations, plus durable memory for agents. Safe by default.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (3 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (19/19 approved).

12 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Base URL of the Ossian installation (e.g. http://localhost:8081).Optional

Environment variable: OSSIAN_URL

Ossian API key (osk_…). Scope it to the narrowest role/namespace that works.Required

Environment variable: OSSIAN_API_KEY

Separates one agent's memories from another's. Defaults to 'mcp'.Optional

Environment variable: OSSIAN_AGENT_ID

Access mode: read-only | read-write | admin. Starts read-only; writes need read-write.Optional

Environment variable: OSSIAN_MODE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-dockndevai-ossian-mcp": {
      "env": {
        "OSSIAN_URL": "your-ossian-url-here",
        "OSSIAN_MODE": "your-ossian-mode-here",
        "OSSIAN_API_KEY": "your-ossian-api-key-here",
        "OSSIAN_AGENT_ID": "your-ossian-agent-id-here"
      },
      "args": [
        "-y",
        "ossian-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

ossian-mcp

npm licence

MCP server for Ossian — ask your organisation's own documents and get the passages the answer came from, plus a memory for your agent that outlives the conversation.

Ossian is the server; this is the adapter that puts it in front of an agent. You need a running Ossian to point it at — see its README for a docker compose up.

What it gives an agent

Tools are gated by access mode (see Safe by default) — the server starts read-only, exposing only the four read tools until you raise the mode.

ToolForNeeds mode
ask_documentsanswer from the corpus, with citations — and say so when it cannotread-only
list_namespaceswhich slices exist, and how much is in eachread-only
list_documentswhat is available to answer from, and what is still ingestingread-only
recallretrieve what is relevant now, ranked by relevance, importance and recencyread-only
add_document_from_urlpull a public page into the corpusread-write
rememberrecord a preference, fact or decision worth keepingread-write
forget_sessionerase one conversation's memory (irreversible)admin + OSSIAN_ALLOW_FORGET

Install

npm install -g ossian-mcp

You need a running Ossian and an API key. Issue one from the console (Console → API keys) or:

curl -X POST "$OSSIAN_URL/api/admin/api-keys" \
  -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
  -d '{"name":"mcp","roles":["ossian-user"],"namespace":"handbooks"}'

Give the key the narrowest scope that works. namespace confines it to one slice, so a key that leaks reads only what that agent was for.

Configure

{
  "mcpServers": {
    "ossian": {
      "command": "ossian-mcp",
      "env": {
        "OSSIAN_URL": "http://localhost:8081",
        "OSSIAN_API_KEY": "osk_...",
        "OSSIAN_AGENT_ID": "support-bot",
        "OSSIAN_MODE": "read-only"
      }
    }
  }
}

OSSIAN_AGENT_ID separates one agent's memories from another's; two agents sharing an id share their recollections, which is occasionally what you want and usually not.

See docs/CLIENTS.md for Claude Code / Cursor / Codex / VS Code / Windsurf snippets, and .env.example for every supported variable.

Safe by default

The server enforces an access model on top of the Ossian API key — defence in depth over the key's own roles and namespace confinement. It reads its policy from the environment (.env.example) and enforces it in src/security.ts:

  • OSSIAN_MODEread-only (default) → read-writeadmin. A tool is registered only if the mode allows its capability. Read-only exposes four tools; ingest and remember need read-write; forget needs admin.
  • OSSIAN_ALLOW_FORGETforget_session erases memory irreversibly, so on top of admin mode it also requires this flag.
  • OSSIAN_NAMESPACE_ALLOWLIST / OSSIAN_PROTECTED_NAMESPACES — confine which slices can be touched, and mark slices that may be read but never ingested into.
  • OSSIAN_DRY_RUN — validate and log writes (ingest / remember / forget) without executing.
  • OSSIAN_AUDIT_LOG — a JSON audit line per guarded operation, on stderr (default on).

The primary control remains the API key: issue the narrowest one that works. See SECURITY.md.

Two things worth knowing

A "not found" is an answer. ask_documents returns a refusal when nothing in the corpus supports a response, and the tool description tells the model to report that rather than falling back on general knowledge. An invented answer presented as company policy is the failure this whole system exists to prevent — do not paper over it in your own prompt.

Memory is not the corpus. recall searches what the agent was told; ask_documents searches what the organisation wrote down. They are separate stores on purpose: memories surfacing as citations in a policy answer would be indistinguishable from the policy itself.

Developing

npm install
npm run build
OSSIAN_URL=http://localhost:8081 OSSIAN_API_KEY=osk_… node dist/index.js

It speaks JSON-RPC over stdio, so it will sit there waiting for a frame. To drive it by hand:

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | node dist/index.js

Diagnostics go to stderr on purpose — anything written to stdout that is not a protocol frame corrupts the stream, and the failure looks like a client that cannot parse rather than a server that printed a log line.

Licence

Apache-2.0

Reviews

No reviews yet

Be the first to review this server!