# Arkheia MCP [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/arkheiaai/arkheia-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 523  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-90

## Description
Detect fabrication and hallucination in any LLM output. 30+ models supported.

## Tools
Capabilities this server exposes over MCP:

- **arkheia_verify** — Verify whether an AI response shows signs of fabrication. Call this on EVERY model response before acting on it. Risk guidance: HIGH = warn the user this response may be fabricated and include the detection_id, but still show them the response with the warning. MEDIUM = show with a brief confidence note. LOW = show normally. Never hide or suppress a response — always surface it to the user with the appropriate risk context.
- **arkheia_audit_log** — Retrieve structured audit evidence for compliance review.
- **run_grok** — Call xAI Grok and screen the response through Arkheia for fabrication.
- **run_gemini** — Call Google Gemini and screen the response through Arkheia for fabrication.
- **run_ollama** — Call a local Ollama model and screen the response through Arkheia. No network egress.
- **run_together** — Call Together AI (Kimi K2.5, DeepSeek, etc.) and screen the response through Arkheia.
- **memory_store** — Store an entity and its observations in the persistent knowledge graph. Entities are upserted by name+type.
- **memory_retrieve** — Search entities in the persistent knowledge graph by name (case-insensitive).
- **memory_relate** — Store a named relationship between two entities in the knowledge graph.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "arkheia-mcp": {
    "command": "npx",
    "args": ["-y","@arkheia/mcp-server"],
    "env": {
      "ARKHEIA_API_KEY": "",
      "ARKHEIA_PROXY_AUTH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `ARKHEIA_API_KEY`, `ARKHEIA_PROXY_AUTH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Arkheia MCP MCP server does

Arkheia MCP screens AI output for signs of fabrication and assigns one of four outcomes: LOW, MEDIUM, HIGH, or UNKNOWN. Results include a confidence value, the behavioural signals that triggered, and a UUID that can be used to correlate the detection with audit records. The `arkheia_verify` tool accepts the original prompt, the model response, and the model identifier, with optional usage and tool-call metadata.

The server also provides model-call tools that combine inference with screening. These cover xAI Grok, Google Gemini, local Ollama models, and Together AI. A separate audit tool returns recent detection events and aggregate counts by risk level.

Persistent knowledge-graph tools provide another workflow: entities can be stored with factual observations, searched later, and connected by named directional relationships. Writes and retrievals return decision-receipt information so callers can distinguish recorded changes from changes that were not evidenced.

## How it works

For an existing model workflow, call `arkheia_verify` before using or displaying a response. LOW results can be handled normally; MEDIUM results should carry a confidence caveat; HIGH results should not be surfaced without investigation; and UNKNOWN results require review because the response was not assessed against a usable profile.

The provider-specific tools call the selected model and return its text together with a prompt hash and Arkheia metadata. Their responses include `arkheia_screened`, which distinguishes a completed assessment from a couldn't-assess outcome. When screening is unavailable or weakly evidenced, the response can include a machine-readable reason and a warning.

Memory entities are upserted by name and type, while duplicate observations are avoided. Relationships are stored by entity ID, not just display name. Both endpoints must already exist, and ambiguous names require an entity-type disambiguator.

## Setup and configuration

Install with:

```bash
npx @arkheia/mcp-server
```

The installer prepares a Python environment and server checkout. Node.js 18+ and Python 3.10+ are required. An Arkheia API key is required; it can be provisioned through the service's `/v1/provision` endpoint.

Configure the MCP client to launch Python with the `mcp_server.server` module, set the working directory to the installed server location, expose that location through `PYTHONPATH`, and provide `ARKHEIA_API_KEY`. Claude Code and Claude Desktop use this stdio configuration pattern. Cursor, Windsurf, Cline, and other MCP-compatible agents can use the same arrangement. Restart the client after changing its configuration.

For local Enterprise Proxy audit-log access, set `ARKHEIA_PROXY_AUTH_TOKEN` to the proxy JWT session token. This credential is separate from `ARKHEIA_API_KEY` and is sent to the configured proxy URL for protected local endpoints.

## Tools and capabilities

- `arkheia_verify`: scores a supplied response and returns risk, confidence, triggered features, a detection ID, and errors.
- `arkheia_audit_log`: retrieves timestamped detection events and risk-level totals, optionally filtered by session.
- `run_grok`: calls xAI Grok and attaches Arkheia screening data.
- `run_gemini`: calls Google Gemini and screens the result.
- `run_ollama`: runs a local Ollama model without network egress and screens its output.
- `run_together`: calls supported Together AI models and screens the response.
- `memory_store`, `memory_retrieve`, and `memory_relate`: maintain entities, observations, searches, and typed relationships with receipt metadata.

Model coverage includes 35+ profiled models across OpenAI, Anthropic, Google, xAI, local model families, and other providers. The provider tools expose selected model IDs and defaults rather than acting as unrestricted generic model gateways.

## Limitations and notes

UNKNOWN does not mean safe: it indicates that the response could not be assessed, such as when no detection profile exists. Grok's default `grok-4.20-non-reasoning` model is currently unscreened, and its reasoning counterpart is also unprofiled. The response exposes this state through `arkheia_screened`, `arkheia_unscreened_reason`, and `arkheia_warning`.

Direct REST detection is available, but calls without inference data provide structural analysis only. The MCP provider tools are intended for workflows that need the fuller signal captured during model calls.

Ollama inference is local, but the Arkheia screening service and other configured components may still be involved. Together AI's Kimi K2.5 path automatically sets `max_tokens` to 2048 because it uses internal reasoning tokens. Relationship operations reject missing or ambiguous endpoints instead of creating dangling edges.

_Full upstream README: https://allmcps.com/mcp/mcp-server-90/readme_

