alpha-library
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., "@alpha-librarysearch for gamma exposure in trading books"
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.
Alpha Library
Centralized trading knowledge base. Book summaries, document chunks, structured strategies. SQLite + FTS5 full-text search, exposed via CLI and MCP server.
📚 Come for the summaries, or bring your own books
public/ships 174 book summaries — ~1.2 M characters distilled from a shelf of trading, investing and market-structure literature, in a ready-to-search SQLite file. PointDB_PATHat it and every tool works immediately. That is the knowledge, shared.No source material ships.
inbox/(the books themselves),references/(purchased course material and third-party playbooks),strategies/(working methods) and the fulldata/database are all gitignored.The full database is the non-obvious one: its
documentstable holds the complete chunked text of every ingested book — 13.9 M characters — so publishing it would redistribute those books more thoroughly than shipping the EPUBs would, and far less visibly. The public export carries the summaries only, and the build script drops the whole table rather than filtering it, because an allowlist stays correct only until someone forgets.To build your own library instead,
examples/documents the file format each parser expects.
Setup
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .
copy .env.example .envRelated MCP server: hw_rag_mcp
Seed content
Point it at whatever you own. Every ingest command is idempotent — re-running skips what is
already in, so a repeated batch is safe. Pass --replace to overwrite deliberately.
python -m alpha_library ingest-references # bulk-ingest references/
python -m alpha_library ingest-document "path\to\manual.epub" --source "Manual Name"
python -m alpha_library ingest-book path\to\summary.md
python -m alpha_library statsSearch: ask it a question, not a keyword
Search runs in three stages. You do not have to think about them; this is what happens.
Keyword — exact terms, via SQLite FTS5.
"iron condor"goes straight to the iron condor chapter. Unbeatable when you know the word.Meaning — finds passages about your question even when they share no words with it.
Reranking — reads the shortlist against your question and keeps the best few.
The difference on this library, measured:
"why do I keep sabotaging myself after a win"
keyword: 0 results
meaning: Trading in the Zone > Shaping Your Mental Environment
"...they haven't yet learned how to counteract the negative
effects of euphoria..."
"position sizing after a losing streak"
keyword: 0 results
meaning: The Options Field Manual > Ch 10: Position Sizing
"...10% risk per trade. Ten losses = 100%..."Neither question shares enough words with its answer to be findable by keyword. Both are answered well. Ask in plain language.
Switching it on
Meaning search is an optional extra — it pulls in ~150 MB of model runtime, and the library is fully usable without it.
pip install -e ".[semantic]"
python -m alpha_library build-index # once, ~20 min. Then only new material.Without it everything still works on keyword search, and every result says
search_mode: "keyword only" with a note explaining how to enable the rest — so a degraded
answer never passes for a complete one.
Speed: keyword ~25 ms; the full stack ~1.5 s, nearly all of it reranking. Pass
--keyword-only (CLI) or keyword_only=True (MCP) when you know the exact term and want it
instant.
CLI
python -m alpha_library search "how much should I risk on one trade"
python -m alpha_library search "iron condor" --keyword-only
python -m alpha_library search "gamma" --scope documents --limit 5
python -m alpha_library build-index
python -m alpha_library stats # includes whether meaning search is on
python -m alpha_library ingest-book path\to\book.md
python -m alpha_library ingest-strategy path\to\strat.md
python -m alpha_library ingest-document path\to\doc.epub
python -m alpha_library export --output backup.jsonTests
pip install -e ".[dev]"
python -m pytest tests28 tests, all offline, each building its own throwaway database — nothing touches the real library. They pin the failure modes that are silent: resolving a title to the wrong book, reading a database that isn't there, an oversized listing, and a malformed query coming back as an empty result.
MCP Server
Standalone run (for testing):
python server.py # stdio, what an MCP client uses
python server.py --transport http --port 8773 # over the networkRegister with Claude Code (one-time, user scope so it's available everywhere). Use the path where you actually cloned it — this is a full absolute path and it will not follow the folder if you move it:
claude mcp add alpha_library --scope user -- "<repo>\.venv\Scripts\python.exe" "<repo>\server.py"Verify with claude mcp list. After registration the 9 tools appear in new sessions as
mcp__alpha_library__* (search_knowledge, get_book_summary, get_strategy, get_document_chunk,
list_books, list_categories, list_strategies, add_book_summary, add_strategy).
How to use it: search finds, get_* reads
Search returns ranked pointers — identity plus the passage that matched, never full text,
because a handful of whole book summaries exceeds the tool-output limit and the call then fails
outright. Hits carry an id; pass it back for an exact read:
search_knowledge("gamma exposure") -> { id: 68, title: "...", match_snippet: "..." }
get_book_summary(book_id=68) -> the full summary, no ambiguityget_book_summary and get_strategy also accept a title or name for convenience — but a text
match can hit several things ("trading" matches 27 of the books), and in that case they return
the candidate list rather than picking one and sounding certain. Prefer the id.
list_books is paged and always reports the true total; call list_categories() first to
find the shelf you want.
This 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.
Related MCP Servers
- Alicense-qualityDmaintenanceLocal MCP server for indexing personal knowledge into SQLite with hybrid search, chunk-level citations, memory tools, and agent orchestration.Last updated4MIT
- Flicense-qualityCmaintenanceMCP server that indexes a knowledge base into Chroma and provides search tools for retrieving document fragments via vector embeddings.Last updated
- AlicenseAqualityAmaintenanceAn MCP server exposing a registry of paper-backed quantitative trading methods plus a deterministic, no-LLM decision helper for reproducible trading research.Last updated13MIT
- AlicenseAqualityBmaintenanceMCP server for managing and searching multi-tenant knowledge bases backed by SQLite with FTS5, enabling AI agents to persist and retrieve content via full-text search.Last updated131MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cmxms/alpha-library'
If you have feedback or need assistance with the MCP directory API, please join our Discord server