hugo-memex
Indexes a Hugo site's content into a searchable SQLite cache with FTS5, enabling querying, full-text search, content retrieval, page creation/update, tag suggestions, validation, and incremental reindexing of Hugo sites.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
hugo-memex
MCP server that makes any Hugo site's content queryable via SQLite with FTS5 full-text search.
Your Hugo blog is ground truth. hugo-memex indexes it into a SQLite cache with full-text search, taxonomy queries, and JSON front matter extraction : then exposes it via MCP so AI assistants can query, search, and create content.
Install
pip install hugo-memexRelated MCP server: astra-knowledge-base-mcp
Quick Start
# Configure
mkdir -p ~/.config/hugo-memex
cat > ~/.config/hugo-memex/config.yaml << 'EOF'
hugo_root: ~/path/to/your/hugo-site
database_path: ~/.config/hugo-memex/hugo.db
EOF
# Index your site
hugo-memex index
# Query it
hugo-memex search "machine learning"
hugo-memex sql "SELECT title, section, date FROM pages ORDER BY date DESC LIMIT 10"
hugo-memex statsMCP Integration
Add to your .mcp.json for Claude Code:
{
"mcpServers": {
"hugo-memex": {
"command": "python",
"args": ["-m", "hugo_memex", "mcp"],
"env": {
"HUGO_MEMEX_CONFIG": "/path/to/config.yaml"
}
}
}
}Tools
Tool | Purpose |
| Read-only SQL with ~10 exemplar queries in the docstring |
| Bulk content retrieval : filter by section, tag, FTS search, paths |
| Raw markdown from filesystem for a single file |
| Create new content with proper leaf bundle structure |
| Merge front matter / replace body on existing pages |
| FTS5-based tag suggestions with canonical casing |
| Derive section conventions from actual data |
| Check completeness, tag consistency, cross-references |
| Incremental re-sync after content changes |
Resources
Resource | Purpose |
| Full DDL + relationship docs + query patterns |
| Hugo site config (hugo.toml) as JSON |
| Aggregate stats for quick orientation |
Architecture
DB is a read-only cache : Hugo content files are ground truth
Generic schema : JSON
front_mattercolumn, no per-content-type tablesTaxonomies auto-discovered from
hugo.tomlIncremental sync via SHA-256 content hash + file mtime
FTS5 with porter stemming + unicode61 tokenizer
SQLite authorizer enforces read-only (not bypassable via PRAGMA)
Raw
sqlite3: no ORM. WAL mode, foreign keys.
Configuration
# ~/.config/hugo-memex/config.yaml
hugo_root: ~/github/repos/my-hugo-site # contains hugo.toml + content/
database_path: ~/.config/hugo-memex/hugo.dbEnvironment variable overrides: HUGO_MEMEX_CONFIG, HUGO_MEMEX_HUGO_ROOT, HUGO_MEMEX_DATABASE_PATH.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
A blog CMS that AI agents write into over MCP: Markdown drafts, versions, media, human approval.
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceQuery, explore, and manage SQLite databases through the Model Context Protocol. Connect any MCP-compatible AI client to your databases.-
- 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.132MIT
- AlicenseNot gradedqualityDmaintenanceProvides a set of MCP tools to let AI assistants like Claude, Cursor, and VS Code Copilot interact with SQLite databases, supporting querying, schema management, and data import/export.10 npmMIT
- AlicenseAqualityBmaintenanceIndexes local Markdown/text files into a SQLite database with vector embeddings and provides MCP tools for semantic search without cloud dependencies.31AGPL 3.0