The most efficient search for AI agents.
Not a Google MCP. A resolved, cited, deduped answer bundle.
A web search returns a list of links. The agent reads, dedupes, and reconciles them. That is a tax, not an answer.
The Library returns one compact bundle: the entity is resolved, the graph is walked, aliases are deduped, belief differences are surfaced, and everything is cited. The agent reads once.
Resolve a target, walk the typed graph, dedupe, group by role, surface belief differences. One call, one answer.
arXiv (all categories), Wikipedia (all domains), Semantic Scholar (citation graph). Continuously ingested.
Library misses? Falls through to Wikipedia, arXiv, and web search in parallel. Always has an answer.
Every artifact has source refs, confidence, and verifier label. Trust is machine-readable.
No signup, no API key, no subscription. 402 Payment Required + x402. Payment is the credential.
Exact id β alias β title β sparse similarity. Dense embedder seam. Ambiguous targets return candidates.
| Route | Price | What it does |
|---|---|---|
query.nodes / edges | $0.002 | Flat artifact query |
query.graph | $0.003 | Graph query (nodes + edges) |
retrieve_artifact | $0.001 | Single artifact fetch |
assemble.bundle | $0.005 | Full answer bundle (anchor product) |
catalog.describe | $0.001 | Capability descriptor (likely free) |
resolve_and_fetch.grab | $0.003 | Live fallback (Wikipedia, arXiv, web) |
Prices are sub-cent USDC via x402. Dev token bypasses all pricing.
Start the server and query the Library in 30 seconds:
# Install and start git clone https://github.com/sebastbernal2/alexandria cd alexandria python -m venv .venv && source .venv/bin/activate pip install -e . # Start the MCP server (stdio) python -m library.mcp.server # Or start the HTTP server python -m library.service.app
In another terminal:
# Discover what the Library holds
python -m library.surface.cli catalog --token alex-dev-token
# Get an answer bundle
python -m library.surface.cli assemble '{"target":"momentum"}' --token alex-dev-token
# Query by type
python -m library.surface.cli query '{"intent":"nodes","filters":{"types":["Paper"]},"output_shape":"summary"}' --token alex-dev-token
Add this to your claude_desktop_config.json or .cursor/mcp.json:
{
"mcpServers": {
"alexandria": {
"command": "python",
"args": ["-m", "library.mcp.server"],
"env": {
"ALEX_DEV_PAYMENT_TOKEN": "your-token-here"
}
}
}
}
Every other knowledge tool for agents returns documents. The Library returns answers β resolved, deduped, cited, with conflicts surfaced. The agent does the reasoning. We do the retrieval.