Citewell MCP
Citewell is an offline, MCP-native RAG server that ingests documents into PostgreSQL with pgvector to provide citation-grounded document memory. It returns verbatim quotes with file, page, and chunk ID references, enabling AI assistants to verify answers against sources without calling an LLM or requiring API keys.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Ingest PDFs, Markdown, and text files into a PostgreSQL database
- Search documents using hybrid retrieval with pgvector and full-text search
- Retrieve cited passages with verbatim quotes and page numbers for AI assistants
- Verify quotes against source documents using the verify_quote tool
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
citewell 0.3.0
{
"version": "0.3.0",
"transport": "stdio",
"identifier": "citewell",
"runtimeHint": "uvx",
"registryType": "pypi",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
}
],
"environmentVariables": [
{
"name": "CITEWELL_DATABASE_URL",
"isRequired": true,
"description": "PostgreSQL (pgvector) connection URL, e.g. postgresql://user:password@localhost:5432/citewell"
},
{
"name": "CITEWELL_EMBEDDING_BACKEND",
"default": "sentence-transformers",
"description": "sentence-transformers (default, needs the citewell[models] extra) or hash (tests and demos only)"
},
{
"name": "CITEWELL_DEFAULT_COLLECTION",
"default": "default",
"description": "Collection searched when a tool call does not name one"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"citewell-mcp": {
"command": "uvx",
"args": [
"citewell==0.3.0",
"mcp"
],
"env": {
"CITEWELL_DATABASE_URL": "<YOUR_CITEWELL_DATABASE_URL>",
"CITEWELL_EMBEDDING_BACKEND": "<YOUR_CITEWELL_EMBEDDING_BACKEND>",
"CITEWELL_DEFAULT_COLLECTION": "<YOUR_CITEWELL_DEFAULT_COLLECTION>"
}
}
}
}Cline
{
"mcpServers": {
"citewell-mcp": {
"command": "uvx",
"args": [
"citewell==0.3.0",
"mcp"
],
"env": {
"CITEWELL_DATABASE_URL": "<YOUR_CITEWELL_DATABASE_URL>",
"CITEWELL_EMBEDDING_BACKEND": "<YOUR_CITEWELL_EMBEDDING_BACKEND>",
"CITEWELL_DEFAULT_COLLECTION": "<YOUR_CITEWELL_DEFAULT_COLLECTION>"
}
}
}
}VS Code
{
"servers": {
"citewell-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"citewell==0.3.0",
"mcp"
],
"env": {
"CITEWELL_DATABASE_URL": "<YOUR_CITEWELL_DATABASE_URL>",
"CITEWELL_EMBEDDING_BACKEND": "<YOUR_CITEWELL_EMBEDDING_BACKEND>",
"CITEWELL_DEFAULT_COLLECTION": "<YOUR_CITEWELL_DEFAULT_COLLECTION>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"citewell-mcp": {
"command": "uvx",
"args": [
"citewell==0.3.0",
"mcp"
],
"env": {
"CITEWELL_DATABASE_URL": "<YOUR_CITEWELL_DATABASE_URL>",
"CITEWELL_EMBEDDING_BACKEND": "<YOUR_CITEWELL_EMBEDDING_BACKEND>",
"CITEWELL_DEFAULT_COLLECTION": "<YOUR_CITEWELL_DEFAULT_COLLECTION>"
}
}
}
}Let your agent find its tools
Find servers like Citewell MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.