factsets
Provides a self-maintaining knowledge base for AI agents, enabling persistent context and knowledge management across sessions when used with GitHub Copilot via the Model Context Protocol.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@factsetswhat facts do you have about my project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Factsets
Package |
|
CI/CD |
|
A self-maintaining knowledge base for AI agents, exposed via the Model Context Protocol (MCP). Manages facts (atomic knowledge), resources (cached external content), skills (procedural markdown), and execution logs (command history) using SQLite.
Features
Persistent Context - Knowledge survives across sessions
Self-Maintaining - Staleness detection with refresh instructions
Tag-Based Organization - Flexible categorization and retrieval
Skill Documents - Markdown files for procedural knowledge
User Preferences - Configurable output style and agent behavior
MCP Protocol - Standard interface for AI tool/prompt definitions
Related MCP server: UseCortex MCP Server
Installation
npm install --global factsets
pnpm install --global factsets
bun install --global factsetsQuick Start
As MCP Server
Add to your MCP client configuration (Claude Desktop, GitHub Copilot, Cursor, etc.), using bunx, npx or pnpm dlx accordingly:
{
"mcpServers": {
"factsets": {
"command": "bunx",
"args": ["factsets", "mcp-server"]
}
}
}Or run directly:
bunx factsets mcp-serverFirst-Time Setup
After adding Factsets to your MCP client, run the setup prompt to integrate it into your project:
In a supported IDE: Type /mcp.factsets.setup in the chat to run the guided setup
In other clients: Call the get_setup_guide tool or use the setup prompt
The setup guide will:
Analyze your project structure and establish baseline facts
Configure the skills directory for your AI client
Create or update
AGENTS.mdwith Factsets instructionsMigrate any existing skills with Factsets integration
Register key configuration files as resources
This one-time setup ensures agents have full context on every future interaction.
CLI Commands
# Start MCP server (default command - auto-watches skill files and seeds starter content)
bunx factsets [--database-url <path>] [--client <type>]
# Explicit mcp-server command (same as above)
bunx factsets mcp-server [--database-url <path>] [--client <type>]
# Start without file watching
bunx factsets --no-watch-skills
# Start without seeding starter content
bunx factsets --no-seed
# Run file watcher standalone
bunx factsets watch-files [--database-url <path>]
# Run background maintenance worker
bunx factsets worker [--database-url <path>]
# Export database to JSON
bunx factsets dump backup.json
# Restore database from JSON
bunx factsets restore backup.jsonThe --client flag configures where skill files are stored (e.g., github-copilot -> .github/prompts/skills/). If you want to change clients / your skill directory, do so through your agent which will migrate skills for you.
See Configuration Guide for all options.
Core Concepts
Concept | Description |
Facts | Atomic knowledge units (1-3 sentences), tagged and timestamped |
Resources | External content (files, URLs, APIs) with cached snapshots and retrieval methods |
Skills | Markdown documents for procedural knowledge, stored on filesystem |
Execution Logs | Command history with success/failure tracking for skill validation |
Tags | Flexible categorization for all content types |
MCP Tools
Facts
Tool | Description |
| Add facts with tags and source tracking |
| Query facts by tags, content, or filters |
| Mark facts as verified by ID |
| Bulk verify facts by tags |
| Update fact content, metadata, or tags |
| Remove facts by criteria |
| Restore soft-deleted facts |
Resources
Tool | Description |
| Register resources with retrieval methods |
| Find resources by tags, type, or URI |
| Get resources by ID or URI with freshness |
| Update cached content for single resource |
| Bulk update cached content |
| Update resource metadata (not content) |
| Remove resources |
| Restore soft-deleted resources |
Skills
Tool | Description |
| Create markdown skill document |
| Update skill metadata/references |
| Find skills by tags or query |
| Get skills by name with content |
| Link skill to facts/resources/skills |
| Sync skill after file edit |
| Remove skills |
| Get skill dependency tree |
| Restore soft-deleted skills |
Execution Logs
Tool | Description |
| Record command/test/build executions |
| Find executions by query, tags, success |
| Get execution details by ID |
Tags
Tool | Description |
| Create organizational tags |
| List tags with usage counts |
| Update tag descriptions |
| Clean up unused orphan tags |
Configuration
Tool | Description |
| Get a configuration value by key |
| Set a configuration value |
| Delete a configuration value |
| List all configuration with schema |
| Get available options with descriptions |
User Preferences
Tool | Description |
| Get natural language preference prompt |
| Get structured preference data |
| Update preference from user behavior |
| Reset preferences to defaults |
Maintenance
Tool | Description |
| Find stale resources and dependencies |
| Mark resources as current |
Context & Guides
Tool | Description |
| Build context from tags (facts/resources/skills) |
| Get skill with formatted content and refs |
| Generate staleness/maintenance report |
| Get instructions for refreshing a resource |
| Get the agent workflow guide (call first) |
| Get conceptual overview and design philosophy |
| Get configuration guide with all options |
MCP Prompts
Prompt | Description |
| Guided setup for new project integration |
| Get user preferences for output formatting |
| Build context from tags |
| Get skill with references |
| Staleness summary |
| Instructions to refresh a resource |
| Agent workflow guide (call first) |
| Conceptual overview and philosophy |
| Configuration guide with all options |
Documentation
Configuration Guide - CLI flags, client setup, and skills directory
Design Reference - Full API documentation
Concept - Philosophy and design rationale
Agent Workflow - How agents use Factsets
Development
# Run tests
bun test
# Run full e2e (tests + build + dry run)
bun e2e
# Build distribution
bun dist
# Format code
bun format
# Lint
bun lint
# Generate database migrations
bun migrations
# Inspect MCP server with inspector
bun inspectThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/joshua-auchincloss/factsets'
If you have feedback or need assistance with the MCP directory API, please join our Discord server