# Factsets MCP Server [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/joshua-auchincloss/factsets  
**GitHub Stars:** 1  
**npm Downloads (last month):** 312  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/factsets-mcp-server

## Description
An MCP server that provides a local, persistent, self-maintaining knowledge base for AI agents

## Tools
Capabilities this server exposes over MCP:

- **list_tags** — List all tags in the knowledge base, optionally filtered by name pattern
- **create_tags** — Create one or more tags for organizing facts, resources, and skills
- **update_tags** — Update descriptions for existing tags. Use this to replace auto-generated placeholder descriptions with meaningful content.
- **prune_orphan_tags** — Clean up orphan tags that have zero usage (not linked to any facts, resources, skills, or execution logs). Use dryRun=true to preview which tags would be deleted without actually deleting them.
- **submit_facts** — Submit one or more facts to the knowledge base. Facts with matching content will be updated. Call this immediately when learning something new - do not wait for user prompting.
- **search_facts** — Search for facts by tags, content query, verification status, or source type. Use this on every prompt to validate context before responding - not just at session start.
- **verify_facts** — Mark one or more facts as verified/confirmed
- **delete_facts** — Delete facts by ID, tags, age, or verification status
- **update_fact** — Update an existing fact's content, metadata, source, verification status, or tags. Find the fact by ID or exact content match. Supports replacing all tags, appending new tags, or removing specific tags.
- **verify_facts_by_tags** — Bulk verify all facts that have specified tags. By default, verifies facts with ANY of the tags. Set requireAll=true to only verify facts that have ALL specified tags. Returns the count and IDs of verified facts.
- **restore_facts** — Restore soft-deleted facts by their IDs. Returns the count of facts that were restored.
- **add_resources** — Register one or more resources (files, URLs, APIs, commands) with metadata for tracking. The system stores retrieval methods - actual fetching is performed by you. Register immediately after fetching - don't wait for user prompting.
- **search_resources** — Search for resources by tags, type, or URI pattern. Check for existing resources before registering new ones to avoid duplicates.
- **get_resource** — Get a specific resource by ID or URI. Returns the stored snapshot and retrieval method for you to refresh if needed.
- **get_resources** — Retrieve multiple resources by IDs or URIs in a single call. Returns found resources and lists any not found.
- **update_resource_snapshot** — Update the snapshot content for a resource after you have fetched fresh data using the retrieval method
- **update_resource_snapshots** — Bulk update snapshot content for multiple resources. Each entry requires resourceId and snapshot content.
- **update_resource** — Update resource metadata (description, tags, retrieval method) without modifying snapshot content or lastVerifiedAt timestamp. Use this to fix placeholder descriptions or reorganize tags.
- **delete_resources** — Delete resources by ID or URI. Also removes associated tags and skill references.
- **restore_resources** — Restore soft-deleted resources by their IDs. Returns the count of resources that were restored.
- **create_skill** — Create a new skill document. Skills are markdown files that capture procedural knowledge and can reference other skills, resources, and facts.
- **update_skill** — Update an existing skill's metadata, tags, or references. Does not modify skill file content - use sync_skill after editing the file directly.
- **sync_skill** — Sync a skill's content hash after the file has been modified externally. Reads the skill file and updates the stored hash if changed.
- **search_skills** — Search for skills by tags or title query. Check for existing skills before creating new ones to avoid duplicates.
- **get_skill** — Retrieve a skill by name with its full content, tags, and references. Set hydrateRefs to include content of referenced skills.
- **get_skills** — Retrieve multiple skills by name in a single call. Returns found skills and lists any not found.
- **link_skill** — Add references from a skill to other skills, resources, or facts
- **delete_skills** — Delete skills by name. Optionally delete the skill files from disk.
- **get_dependency_graph** — Get a dependency graph for a skill showing all connected skills, resources, and facts. Returns a tree structure with nodes and edges for visualization. Use this to fully saturate skill context before performing complex tasks.
- **restore_skills** — Restore soft-deleted skills by their names. Returns the count of skills that were restored.
- **check_stale** — Check for stale resources, skills with changed dependencies, and unverified facts. Returns retrieval methods for stale resources so you can refresh them.
- **mark_resources_refreshed** — Mark resources as refreshed after you have verified their content is still valid
- **get_config** — Get a configuration value by key
- **set_config** — Set a configuration value. Use get_config_schema to see all available options with descriptions and valid values. Freshness settings control staleness thresholds in hours.
- **delete_config** — Delete a configuration value by key
- **list_config** — List all configuration values with their current settings
- **get_config_schema** — Get the configuration schema showing all available options with descriptions, types, and defaults. Use this to discover configurable settings like freshness thresholds.
- **get_knowledge_context** — Build a knowledge context from tags. Returns formatted markdown with relevant facts, resources, skills, and staleness warnings. Use this to gather context before working on a task.
- **build_skill_context** — Build formatted context for a skill including its full content, tags, references, and optionally hydrated referenced skills. Returns markdown suitable for agent consumption.
- **get_maintenance_report** — Generate a maintenance report showing stale resources, skills with changed dependencies, and unverified facts. Use this to identify knowledge base items that need attention.
- **get_refresh_guide** — Get step-by-step instructions for refreshing a specific resource. Returns guidance on how to fetch new content based on the resource's retrieval method.
- **submit_execution_logs** — Record execution logs for commands, tests, builds, or any actions. Captures command, output, success status, and tags for future reference. Use this to build institutional memory of what commands work for this project. Log immediately after running commands - don't batch or delay.
- **search_execution_logs** — Search execution history by tags, free text query, or success status. Find what commands were run, what worked, and learn from past experiments. Query searches across command, context, and output fields.
- **get_execution_log** — Get a specific execution log by ID to see full details including output.
- **get_user_preferences** — Get all user preferences including communication style, code output, documentation, and interaction settings
- **get_preference_prompt** — Generate a natural language prompt describing all user preferences. Use this to understand how to format responses, code, and documentation according to user preferences.
- **infer_preference** — Update a user preference based on explicit statement or inferred behavior. Use when user indicates a preference (e.g., 'no emojis', 'be more concise'). Explicit preferences are always applied; inferred ones require high confidence.
- **reset_preferences** — Reset user preferences to defaults. Optionally specify keys to reset specific preferences only.
- **get_agent_guide** — Get the Factsets agent workflow guide. CALL THIS FIRST before using other factsets tools. Returns comprehensive instructions on how agents should interact with the knowledge base including discovery, retrieval, contribution, and maintenance workflows. Emphasizes continuous usage on every prompt - not just at session start.
- **get_concept_guide** — Get the Factsets conceptual overview explaining the system design, core concepts (facts, resources, skills, tags), and philosophy behind the knowledge management approach. Includes guidance on continuous headless operation.
- **get_config_guide** — Get the Factsets configuration guide. Explains all available configuration options, their effects on system behavior, and recommended settings for different use cases. Check current config values after calling this.
- **get_setup_guide** — Get the Factsets integration setup guide. Use this when integrating Factsets into a new project or repository. Provides comprehensive instructions for analyzing the project, migrating existing skills, configuring AGENTS.md, and establishing baseline knowledge. Designed for thorough one-time setup that saves tokens on all future interactions.

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

```json
"mcpServers": {
  "factsets-mcp-server": {
    "command": "npx",
    "args": ["-y","factsets","mcp-server"]
  }
}
```

## Documentation

## What Factsets MCP Server does

Factsets MCP Server MCP server provides a local knowledge base for AI agents. It stores several related forms of project context in SQLite: short factual records, external resources with cached content, markdown skill documents, command and test execution history, and reusable tags. The data persists between agent sessions rather than living only in a conversation.

Facts can include tags, source information, timestamps, and verification status. Resources represent files, URLs, or APIs and can retain cached snapshots. Skills are procedural markdown documents that can reference or connect to facts, resources, and other skills. Execution logs record commands, tests, and builds together with their success or failure state.

## How it works

The package runs as an MCP server through a client such as Claude Desktop or Cursor. Agents call its tools to write and retrieve records from the SQLite-backed store. Search operations support fields such as tags, text, resource type, URI, or execution outcome, depending on the record type.

Skill files are stored on the filesystem and can be synchronized after edits. The command can watch skill files automatically, while a separate worker command is available for background maintenance. Resource records retain retrieval details and cached content; resource freshness can be checked when retrieving them. The project describes staleness detection and refresh instructions as part of its self-maintaining behavior.

## Setup and configuration

Install the package globally with one of the supported package managers:

- `npm install --global factsets`
- `pnpm install --global factsets`
- `bun install --global factsets`

Add the command to the MCP client configuration, using `bunx`, `npx`, or `pnpm dlx` as appropriate. A typical stdio entry runs `bunx factsets mcp-server`. The default command can also start the server, watch skill files, and seed starter content. `--no-watch-skills` disables file watching, and `--no-seed` disables starter content. Use `--database-url <path>` to select the database path and `--client <type>` to configure the skill directory for a client.

The first-time setup prompt can inspect a project, establish baseline facts, configure the skills directory, create or update `AGENTS.md`, migrate existing skills, and register configuration files as resources. The package also provides commands to run the file watcher, start the maintenance worker, export the database to JSON, and restore it from JSON.

## Tools and capabilities

Factsets MCP Server MCP server includes tools for:

- Submitting, searching, verifying, updating, deleting, and restoring facts.
- Registering, finding, retrieving, refreshing, updating, deleting, and restoring resources.
- Creating, searching, retrieving, linking, synchronizing, updating, deleting, and restoring skills.
- Inspecting skill dependency graphs.
- Recording and searching execution logs, then retrieving individual log details.
- Creating, listing, and updating organizational tags.

A setup guide is available through the MCP setup prompt or the `get_setup_guide` tool.

## Limitations and notes

It also does not specify environment variables; configuration is shown through command-line options and MCP client settings. Cached resource content must be refreshed explicitly or through the documented maintenance behavior, and skill synchronization is relevant when files are edited outside the agent.

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

