# Dewey

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/meetdewey/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 212  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dewey

## Description
Agentic search over your Dewey document collections from any MCP-compatible client.

## Tools
Capabilities this server exposes over MCP:

- **dewey_list_collections** — List all collections in the project, including description and research instructions when set
- **dewey_search** — Hybrid semantic + keyword search over chunk content
- **dewey_scan_sections** — Lightweight search over section titles and summaries
- **dewey_research** — Agentic research query with configurable depth — returns a grounded, cited answer
- **dewey_get_section** — Fetch the full Markdown content of a section by ID
- **dewey_list_documents** — List documents in a collection with their processing status
- **dewey_get_document_sections** — List all sections in a document (table of contents with heading levels and IDs)
- **dewey_get_document_markdown** — Fetch the full converted Markdown content of a document
- **dewey_retry_document** — Retry a failed document — clears error state and re-queues processing
- **dewey_delete_document** — Permanently delete a document and all its derived data
- **dewey_list_claims** — List extracted factual claims from a collection or specific document, filterable by importance (1–5)
- **dewey_list_contradictions** — List detected contradictions — clusters of conflicting claims with explanations and suggested resolutions
- **dewey_detect_contradictions** — Trigger an async contradiction detection run across all claims in a collection
- **dewey_get_contradiction_run** — Get the status and stats of the latest contradiction detection run (use to poll after `dewey_detect_contradictions`)
- **dewey_resolve_contradiction** — Apply a resolution instruction to a contradiction or dismiss it
- **dewey_detect_duplicates** — Trigger an async deduplication run — identifies near-duplicate documents by measuring shared content across chunks and marks one per cluster as canonical
- **dewey_get_duplicate_run** — Get the status and stats of the latest deduplication run (use to poll after `dewey_detect_duplicates`)
- **dewey_list_duplicate_groups** — List near-duplicate groups with canonical + members and coverage percentages
- **dewey_promote_duplicate_canonical** — Promote a different member to canonical; old canonical becomes near_duplicate
- **dewey_disband_duplicate_group** — Disband a group; former members rejoin retrieval as distinct documents
- **dewey_get_collection_stats** — Get document count, storage, section/chunk/claim counts, and processing status breakdown
- **dewey_update_collection** — Update collection name, description, research instructions, visibility, and feature flags
- **dewey_recompute_summaries** — Re-run AI section summarization across all documents (e.g. after changing the LLM model)
- **dewey_recompute_captions** — Re-run AI captioning for all images and tables across all documents
- **dewey_delete_collection** — Permanently delete a collection and all its data

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

```json
"mcpServers": {
  "dewey": {
    "command": "npx",
    "args": ["-y","@meetdewey/mcp"],
    "env": {
      "DEWEY_API_KEY": ""
    }
  }
}
```

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

## Documentation

## What Dewey MCP server does

Dewey MCP server gives an MCP client access to document collections managed by Dewey. Agents can discover collections, search indexed chunks, scan section titles and summaries, retrieve complete sections or documents, and ask research questions that produce grounded answers with citations.

The server also supports collection maintenance and analysis. It can list document processing states, retry failed documents, delete documents, inspect extracted claims, find contradictions, and identify near-duplicate documents. Collection-level tools expose statistics, update metadata and feature flags, rerun section summaries, rerun image and table captions, or permanently remove a collection.

## How it works

The package runs as a local MCP process and communicates with Dewey through its API. An MCP client invokes named tools, while the server uses the configured project credentials and collection context to make the corresponding requests.

A typical research sequence starts by listing collections, then scanning sections to locate relevant material. The agent can retrieve a section, run hybrid search for focused evidence, and use `dewey_research` when the question needs multi-step analysis. A default collection can be configured so tools that accept a collection ID can use it when no explicit ID is supplied.

Contradiction detection and duplicate detection are asynchronous. Start a run with the relevant detection tool, then poll its status tool for progress and statistics. Duplicate handling can mark one document in a near-duplicate group as canonical, while other members are excluded from retrieval and contradiction detection.

## Setup and configuration

Install the package through an MCP client configuration using `npx -y @meetdewey/mcp`. On macOS and Linux, the documented example wraps the command in `/bin/sh` with `-lc`; on Windows, the configuration uses `npx` directly with `-y` and the package name.

Set `DEWEY_API_KEY` to a Dewey project API key. `DEWEY_COLLECTION_ID` is optional and supplies a default collection. `DEWEY_API_URL` can override the default API base URL, which is `https://api.meetdewey.com/v1`.

## Tools and capabilities

Search and research tools cover collection discovery, section scanning, hybrid search, cited research, and Markdown retrieval. Document tools provide document lists, section tables of contents, full converted Markdown, retry handling, and deletion.

Claims and contradiction tools list extracted facts, filter claims by importance from 1 to 5, launch contradiction analysis, inspect run status, and apply or dismiss resolutions. A resolution can also append the suggested instruction to the collection’s research instructions.

Deduplication tools launch analysis, report run status, list duplicate groups with coverage percentages, change the canonical member, or disband a group. Collection tools report counts and processing states, update settings, recompute AI-generated summaries and captions, and delete collections.

## Limitations and notes

The server requires a Dewey project API key. Collection and document deletion are permanent operations according to the tool descriptions. Duplicate detection requires `enableDeduplication: true` on the collection, configured through `dewey_update_collection` or the Dewey dashboard. Non-canonical duplicate documents do not participate in retrieval or contradiction detection. Async detection jobs require a separate status check after they are started.

_Full upstream README: https://allmcps.com/mcp/dewey/readme_

