SQLite-backed FastMCP server for literature and source management

SQLite-backed FastMCP server for literature and source management

sqlite-literature-management-fastmcp-mcp-server•byyuzongmin

A FastMCP server that stores literature sources, notes, identifiers, and entity links in a local SQLite database and exposes management tools and resources over MCP.

License: Not specified•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Provides batch import of sources with titles, source types, identifiers such as DOI or arXiv, and optional initial notes, with duplicate detection.
  • •Supports attaching notes to sources, updating reading status, adding identifiers, and linking sources to named concepts with relation types.
  • •Exposes MCP resources for looking up a source by identifier, browsing unread or reading lists, and listing sources for an entity.
  • •Includes read-only database inspection tools and schema version checks against the SQLite database.

BEST FOR

  • •Researchers who want a local SQLite database to track papers, webpages, books, videos, and blogs with notes and identifiers.
  • •Users who want an MCP client to look up sources by DOI, arXiv, PMID, or other identifiers and browse reading lists.
  • •People organizing literature by concept relationships such as discusses, introduces, extends, evaluates, and critiques.

ABOUT SQLITE-LITERATURE-MANAGEMENT-FASTMCP-MCP-SERVER

SQLite-backed FastMCP server for literature and source management is cataloged as an MCP server attributed to yuzongmin. A FastMCP server that stores literature sources, notes, identifiers, and entity links in a local SQLite database and exposes management tools and resources over MCP. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SQLite-backed FastMCP server for literature and source management are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What database does this server use?

It uses a local SQLite database centered on sources, source identifiers, source notes, and source entity links tables.

How does it handle duplicate sources during import?

Exact identifier matches return an existing-source message with the existing payload, while title-based fuzzy matches prompt the user to verify potential duplicates.

Does it run as a stdio server or over HTTP?

It runs as a stdio MCP server; there is no HTTP port exposed by default.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a3ceee63a34f · 采集于 2026-11-13 10:02:19 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Universal Source Management System

A lightweight FastMCP server for managing literature, notes, entity links, and reading-list resources in a local SQLite database.

Current Scope

This repository provides:

  • Local SQLite-backed source management
  • Notes attached to sources
  • Entity links between sources and named concepts
  • Read-only database inspection tools
  • MCP resources for source lookup and reading lists
  • Normalized identifier storage with a transitional JSON cache

It does not integrate with MCP Memory Server or an external memory graph.

Quick Start

  1. Create a database from the current schema:
sqlite3 sources.db < create_sources_db.sql
  1. Install the FastMCP server with your database path:
fastmcp install sqlite-paper-fastmcp-server.py --name "Source Manager" -e SQLITE_DB_PATH=/path/to/sources.db
  1. Optional: use the checked-in demo fixture at examples/sources.db.

Docker

This server can be packaged as a containerized stdio MCP server.

Build the image:

docker build -t sqlite-lit-mcp .

Run it with a persistent SQLite volume:

mkdir -p data
docker run --rm -i \
  -e SQLITE_DB_PATH=/data/sources.db \
  -v "$(pwd)/data:/data" \
  sqlite-lit-mcp

Notes:

  • The image defaults SQLITE_DB_PATH to /data/sources.db.
  • If the database file does not exist, the container initializes it from create_sources_db.sql.
  • If you are mounting an older database, apply the required migrations under migrations/ before starting the server.
  • This repo runs as a stdio MCP server, so there is no HTTP port to expose by default.

With Docker Compose:

docker compose run --rm sqlite-lit-mcp

Current Tool Surface

Implemented tools:

  • read_query
  • list_tables
  • describe_table
  • get_table_stats
  • get_database_info
  • vacuum_database
  • add_sources
  • add_notes
  • update_status
  • add_identifiers
  • link_to_entities
  • get_source_entities
  • update_entity_links
  • remove_entity_links
  • get_entity_sources

Implemented resources:

  • source://<id>
  • source://by-identifier/<type>/<value>
  • reading-list://unread
  • reading-list://reading
  • entity://<entity_name>

Schema Notes

The current schema centers on four tables:

  • sources
  • source_identifiers
  • source_notes
  • source_entity_links

sources.identifiers is still kept as a transitional JSON cache, but identifier lookups now use source_identifiers.

Supported identifier types:

  • semantic_scholar
  • doi
  • arxiv
  • openalex
  • pmid
  • isbn
  • url

Supported entity relation types:

  • discusses
  • introduces
  • extends
  • evaluates
  • applies
  • critiques
  • supports
  • contradicts
  • refutes

Lightweight provenance fields live on sources:

  • provider
  • discovered_via
  • discovered_at

The schema now uses PRAGMA user_version = 3.

Migration

If you have a version 0 or version 1 database, apply:

sqlite3 /path/to/sources.db < migrations/2026-03-09__normalize-identifiers.sql
sqlite3 /path/to/sources.db < migrations/2026-03-09__expand-entity-relation-types.sql

If you already migrated to version 2, apply:

sqlite3 /path/to/sources.db < migrations/2026-03-09__expand-entity-relation-types.sql

These migrations:

  • adds source_identifiers
  • backfills identifier rows from the legacy JSON column
  • adds provenance fields
  • expands source_entity_links.relation_type to include supports, contradicts, and refutes
  • updates PRAGMA user_version to 3

The server checks PRAGMA user_version on connection and will reject older databases until they are migrated.

Package Layout

The implementation is organized under sqlite_lit_server/:

  • app.py creates the FastMCP instance and registers tools/resources
  • db.py owns connection setup and schema-version checks
  • repository.py keeps SQL-heavy lookup logic close to the data layer
  • tools_admin.py, tools_sources.py, and tools_entities.py hold the MCP tools
  • resources.py defines the MCP resources

sqlite-paper-fastmcp-server.py remains as a thin compatibility shim.

Batch Import Sources

add_sources is the batch import entrypoint for new sources. It accepts one argument named sources, where each item is:

[title, source_type, identifier_type, identifier_value, initial_note]

initial_note must be either null or an object with both title and content.

Supported source_type values:

  • paper
  • webpage
  • book
  • video
  • blog

Supported identifier_type values:

  • semantic_scholar
  • doi
  • arxiv
  • openalex
  • pmid
  • isbn
  • url

Duplicate handling:

  • Exact identifier matches return Source already exists together with the existing source payload.
  • Title-based fuzzy matches return Potential duplicates found. Please verify or use add_identifiers if these are the same source.
  • Successful batch writes return one result per input item in the same order as the request.

Example MCP/JSON payload:

{
  "sources": [
    [
      "Attention Is All You Need",
      "paper",
      "arxiv",
      "1706.03762",
      {
        "title": "Initial thoughts",
        "content": "Transformers start here."
      }
    ],
    [
      "OpenAlex Import",
      "paper",
      "openalex",
      "W1234567890",
      null
    ]
  ]
}

Example Python call:

add_sources([
    (
        "Attention Is All You Need",
        "paper",
        "arxiv",
        "1706.03762",
        {
            "title": "Initial thoughts",
            "content": "Transformers start here.",
        },
    ),
    (
        "OpenAlex Import",
        "paper",
        "openalex",
        "W1234567890",
        None,
    ),
])

The same tool payloads work whether you start the server locally or through Docker with docker compose run --rm sqlite-lit-mcp.

Batch Write Conventions

Plural write tools accept lists and return a per-input result list in the same order. Related batch tools include:

  • add_notes
  • add_identifiers
  • update_status
  • link_to_entities

Example Usage

Add another identifier:

add_identifiers([
    (
        "Attention Is All You Need",
        "paper",
        "arxiv",
        "1706.03762",
        "semantic_scholar",
        "204e3073870fae3d05bcbc2f6a8e263d9b72e776",
    ),
])

Read a source resource:

source://by-identifier/arxiv/1706.03762

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SQLite-backed FastMCP server for literature and source management from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sqlite-literature-management-fastmcp-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation