MorphikSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server implementation for Morphik multi-modal database.
Overview
This MCP server allows Claude and other MCP-compatible AI assistants to interact with the Morphik database system, enabling:
- Document ingestion (text and files)
- Document retrieval (by relevance to queries)
- Document querying with LLM-powered completions
- Document management (listing, getting, deleting)
- File system navigation and file ingestion from paths
The server supports two transport modes:
- stdio (default): Standard input/output for use with Claude Desktop and other MCP clients
- Streamable HTTPS: HTTP/HTTPS endpoint for web-based integrations
Prerequisites
You need access to either:
- A local Morphik server running on localhost:8000, or
- The Morphik cloud platform
Installation & Usage
Option 1: Run directly with npx (recommended)
# Connect to local Morphik server npx morphik-mcp # Connect to Morphik cloud platform (replace with your actual URI) npx morphik-mcp --uri=https://api.morphik.ai # Specify allowed directories for file operations (comma-separated) npx morphik-mcp --allowed-dir=~/Documents,~/Downloads
Option 2: Global installation
npm install -g morphik-mcp # Connect to local Morphik server morphik-mcp # Connect to Morphik cloud platform morphik-mcp --uri=https://api.morphik.ai # Specify allowed directories for file operations morphik-mcp --allowed-dir=~/Documents,~/Downloads
Option 3: Local development
# Clone the repository git clone https://github.com/morphik-org/morphik-npm-mcp.git cd morphik-npm-mcp # Install dependencies npm install # Build the project npm run build # Start the server (local Morphik) npm start # Start the server with file operations enabled node build/index.js --allowed-dir=~/Documents,~/Downloads
The server runs on standard input/output streams by default and can be used with MCP clients like Claude.
For HTTP/HTTPS mode (st
08782efcc351OBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp -- npx -y @morphik/[email protected]
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@morphik/[email protected]"
]
}
}
}Exposed tools (17)
11 read · 4 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
check-ingestion-status | read | Check processing status for a document that is being ingested or processed. |
delete-document | destructive | Delete a document and all of its derived data. |
get-document | read | Lookup metadata for a document by ID. |
get-file-info | read | Get detailed information about a file or directory, including size, creation time, and permissions. Use this to check if a file exists and learn more about it before ingesting. |
get-pages-in-range | read | Retrieve an inclusive page range (max 10 pages) from a document. Ideal for reading context around earlier chunk hits. |
ingest-file-from-base64 | write | Add a file to Morphik |
ingest-file-from-path | write | Add a file to Morphik |
ingest-files-from-paths | write | Add multiple files to Morphik |
ingest-text | write | Add raw text into Morphik so it becomes searchable and available for retrieval. |
list-allowed-directories | read | Get a list of directories the MCP server is allowed to access for file operations. Use this to understand where you can browse and select files for ingestion into Morphik. |
list-directory | read | List files and subdirectories in a specified directory. Results are marked as either [FILE] or [DIR]. Use this to browse file systems to find files you want to ingest into Morphik. |
list-documents | read | List documents with optional metadata filters. Supports high limits, folder scoping, and returning total counts. |
morphik-filters | destructive | Show, set, or clear typed metadata filters that automatically apply to retrieval and list commands. |
retrieve-chunks | read | Retrieve the most relevant text or image pages for a given query. Always call this before answering knowledge-based questions. |
retrieve-docs | read | Return complete documents that best match a query when you need broader context than individual chunks. |
search-documents | read | Search for documents by filename or title using full-text search. Use this to discover documents before retrieving their content. |
search-files | read | Search for files matching a pattern in a directory and its subdirectories. This is useful for finding files when you don |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
delete-document, morphik-filters
@modelcontextprotocol/sdk, @types/cors, @types/express, @types/minimatch, @types/sharp, cors, express, form-data
Gates applied: no_behavioural_pass, no_license.
08782efcc351full audit observations/trust-audit/mcp-server/morphik-org__morphik.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 08782efcc351 | SAFE | B | 89 | first audit |
Questions
What tools does Morphik expose?
17 in total: 11 read-only, 4 that write, and 2 that can delete or overwrite (delete-document, morphik-filters). Every one is listed on this page with its risk.
Is Morphik safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Morphik need?
No credential environment variables were found in its source, so it appears to need none.
How does Morphik run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @morphik/mcp at 1.0.13.
How current is this page?
The grade is for one exact copy of the source (08782efcc351), read on 2026-10-09. The repository is watched and re-audited when it changes.