X Bookmarks Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited X Bookmarks Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Fully local, privacy-first MCP server that turns exported X/Twitter bookmarks into a searchable, enriched knowledge base for Claude Desktop and Claude Code.
This project explores how personal knowledge, local-first data, and MCP tooling can make AI assistants more useful without sending private bookmark data to third-party services.
I save a lot of useful posts, threads, tools, and ideas on X, but bookmarks quickly become a black hole: easy to save, hard to find, and almost impossible to turn into something useful later.
I wanted a local system that could import my exported bookmarks, enrich linked content, tag topics automatically, and expose everything to Claude through MCP — while keeping the data private and under my control.
This project helped me practice MCP server design, local-first tooling, SQLite full-text search, Docker workflows, async enrichment, private data handling, and AI-assisted knowledge management.
Use a browser extension like twitter-web-exporter to export your X bookmarks as JSON.
Save the export to data/exports/bookmarks.json.
git clone https://github.com/p0ki/x-bookmarks-mcp.git
cd x-bookmarks-mcp
pip install -r requirements.txtpython -m src import data/exports/bookmarks.json
python -m src enrichAdd to your claude_desktop_config.json:
{
"mcpServers": {
"xbookmarks": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/absolute/path/to/x-bookmarks-mcp"
}
}
}Replace /absolute/path/to/x-bookmarks-mcp with the full path to your clone.
git clone https://github.com/p0ki/x-bookmarks-mcp.git
cd x-bookmarks-mcp
pip install -r requirements.txtRequires Python 3.11 or higher. All dependencies are listed in requirements.txt.
# Import bookmarks from JSON export
python -m src import data/exports/bookmarks.json
# Fetch and extract content from URLs in bookmarks
python -m src enrich
# Re-fetch already-enriched bookmarks
python -m src enrich --refresh
# Re-run auto-tagging on all bookmarks
python -m src retag
# Show collection statistics
python -m src stats
# Enable verbose logging
python -m src -v import data/exports/bookmarks.jsonpython -m src.serverThe server runs over stdio and is designed to be launched by Claude Desktop or Claude Code.
docker build -t xbookmarks-mcp .Add to your claude_desktop_config.json:
{
"mcpServers": {
"xbookmarks": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-v", "/absolute/path/to/xbookmarks/data:/app/data",
"-v", "/absolute/path/to/xbookmarks/config.yaml:/app/config.yaml:ro",
"xbookmarks-mcp"
]
}
}
}Replace /absolute/path/to/xbookmarks with the full path to your local clone. Relative paths do not work here because Claude Desktop launches the container from its own working directory.
# Import bookmarks
docker compose run --rm xbookmarks-cli import data/exports/bookmarks.json
# Enrich bookmarks
docker compose run --rm xbookmarks-cli enrich
# Show stats
docker compose run --rm xbookmarks-cli statsbookmarks.json ──▶ ingest ──▶ SQLite DB
│
enrich (async)
fetch URLs ──▶ extract content
│
auto-tag (keyword rules)
│
MCP server (stdio)
│
Claude Desktop / Claude Codeconfig.yaml to categorize bookmarks| Tool | Description |
|---|---|
search_bookmarks | Full-text search across all bookmark content |
list_tags | List all tags with bookmark counts |
get_bookmark | Get a single bookmark with full detail |
browse_by_tag | Browse bookmarks by tag, newest first |
add_note | Add or update a personal note on a bookmark |
add_tag | Add a tag to a bookmark (idempotent) |
get_stats | Collection overview — counts, tags, authors, enrichment status |
summarize_topic | Gather bookmarks on a topic for Claude to synthesize |
| Variable | Default | Description |
|---|---|---|
DB_PATH | ./data/bookmarks.db | Path to SQLite database |
CONFIG_PATH | ./config.yaml | Path to config file |
FETCH_DELAY_SECONDS | 1.0 | Delay between URL fetches |
FETCH_TIMEOUT_SECONDS | 10 | Timeout for URL fetches |
MAX_CONTENT_LENGTH | 50000 | Maximum extracted content length |
tag_rules:
claude-code:
- "claude code"
- "claude-code"
mcp:
- "mcp"
- "model context protocol"Bookmarks are automatically tagged when any keyword is found in the tweet text, thread text, or enriched page content.
# Clone
git clone https://github.com/p0ki/x-bookmarks-mcp.git
cd x-bookmarks-mcp
# Install dependencies
pip install -r requirements.txt
# Run tests
pytest -v
# Run tests with coverage
pytest --cov=src --cov-fail-under=80 -v
# Lint
ruff check src/ tests/
black --check src/ tests/
isort --check-only src/ tests/
# Run private data scanner
python scripts/check_private_data.py~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.