MCP server for Morphik multimodal database with support for ingesting and retrieving documents, chunks, and file operations
The Morphik MCP server provides 16 tools with consistent naming conventions and reasonable descriptions. However, there are significant gaps in schema completeness, parameter descriptions, and error handling guidance. Tool names follow verb_noun patterns (list-, get-, ingest-, retrieve-, delete-, search-, set-, clear-) which is good for LLM parsing. Descriptions are present for all tools and most exceed 20 characters, averaging around 150-180 characters, within acceptable range. However, many parameters lack detailed descriptions (e.g., 'metadata' object with no field guidance, 'filters' with no explanation of valid keys, 'rules' array with no item structure). Output schemas are not documented in the code provided. Error handling is minimal, the file-tools.ts shows basic try-catch blocks that return error text, but no recovery guidance or categorization. Security is moderate: paths are validated against allowedDirectories, but no explicit audit logging, permission checks, or secret handling is visible. The tools compose reasonably well for a knowledge-base system, but lack the refinement expected for a 70+ score.
Clear all global metadata filters that were previously set, reverting to unrestricted searches.
Delete a document from Morphik by its ID. This action is permanent and cannot be undone.
Retrieve a specific document by its ID to view its complete content and metadata.
Retrieve specific pages from a document by page number range. Useful for extracting content from particular sections of multi-page documents.
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.
View the currently active global metadata filters being applied to all retrieve operations.
Parameter 'metadata' used across 5 ingestion tools (ingest-file-from-path, ingest-file-from-base64, ingest-text, set-metadata-filters) with no description of valid keys, structure, or examples. LLMs cannot determine what metadata to pass without field-level guidance.
Parameter 'filters' used in retrieve-chunks, retrieve-docs, list-documents with type 'object' but no documentation of valid keys, operators, or constraints. LLMs will guess at filter syntax (e.g., equality vs range queries).
Parameter 'rules' in ingestion tools is typed as array of objects with no schema for array items. What fields should each rule object contain? How many rules are allowed? LLMs cannot construct valid rules.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 57 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 36 | - | v1 |
Add a file to Morphik's knowledge base by providing base64-encoded file content. This is useful in HTTP/HTTPS transport mode where clients may not have direct file system access. The tool decodes the base64 data and uploads it to Morphik.
Add a file to Morphik's knowledge base by providing its path on the server's file system. This tool handles reading the file and uploading it to Morphik, making it searchable. Supports various file types including PDFs, Word documents, images, and more.
Add raw text into Morphik so it becomes searchable and available for retrieval.
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 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.
Get a list of all documents in Morphik with optional filtering, pagination, and sorting. Use this to explore available documents in the knowledge base.
Retrieve the most relevant text or image pages for a given query. Always call this before answering knowledge-based questions.
Return complete documents that best match a query when you need broader context than individual chunks.
Search for files matching a pattern in a directory and its subdirectories. This is useful for finding files when you don't know their exact location or want to find all files of a certain type.
Set global metadata filters that will be applied to all subsequent retrieve operations. Use this to restrict searches to a subset of documents based on metadata criteria.
No output schemas documented for any tool. The 'retrieve-chunks' tool presumably returns chunks with relevance scores, but the response structure is not specified. LLMs cannot plan downstream uses of the returned data without explicit schema.
Error handling in file-tools.ts returns generic error text ('Error listing directory: <message>') with no recovery guidance. If path validation fails, the LLM learns nothing about why or what to try next.
Numeric parameters (k, minScore, padding, hopDepth, skip, limit, startPage, endPage) lack min/max constraints in descriptions. LLMs may pass arbitrary values (negative, zero, unbounded).
Destructive tool 'delete-document' lacks a dry-run, confirmation, or undo mechanism. Agents should confirm before permanent deletion, but no such pattern is implemented.
Parameters 'folderName' and 'endUserId' appear across 8+ tools but are optional with no guidance on when to use them. If omitted, do they default to user's own workspace? Shared workspace? This ambiguity invites wrong scoping.