elog-mcp
The server provides read-only access to ELOG electronic logbooks over MCP/OpenAPI, letting LLM agents search and retrieve logbook entries and attachments.
List available logbooks (
elog_list_logbooks)Full-text, attribute, and date-range search across one or all logbooks (
elog_search), with regex support, optionallast_daysfilter, result limits, and newest/oldest sortingFetch complete logbook entries including body, attributes, threading info, and web URL (
elog_get_entry)Retrieve the newest entries of a logbook as excerpts (
elog_get_recent_entries)Download attachments as base64 content with filename, MIME type, and size (
elog_get_attachment)Operates strictly read-only via HTTP GET, with optional shared credentials and logbook allow-list restrictions
Click on "Deploy 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., "@elog-mcp find entries about detector calibration in the last week"
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.
elog-mcp
OpenAPI/MCP server giving LLM agents read-only access to ELOG electronic logbooks over HTTP. Works with any standard elogd instance.
Search entries by full text (regex), attributes, and date range
Read entries in full (attributes + body + attachments)
Download attachments, discover logbooks
Strictly read-only: only HTTP GET requests are issued. TLS verification is on by default. Credentials come from the environment only and are never logged or echoed.
Installation
Requires Python >= 3.10.
uvx (recommended -- runs elog-mcp in an isolated environment, no setup):
uvx elog-mcppipx:
pipx install elog-mcppip:
pip install elog-mcpFor the OpenAPI/REST transport, install with the openapi extra:
uvx --extra openapi elog-mcp
pipx install "elog-mcp[openapi]"
pip install "elog-mcp[openapi]"From source (development):
git clone https://github.com/ast0815/elog-mcp.git
cd elog-mcp
uv sync
uv run elog-mcpRelated MCP server: mcp-opensearch
Configuration
All settings are environment variables (ELOG_ prefix):
Variable | Required | Meaning |
| yes | Base URL incl. subdir, e.g. |
| no | Shared credentials |
| no | Comma-separated allow-list used by search |
| no |
|
| no | HTTP timeout seconds (default |
| no |
|
| no | Bind address/port in HTTP modes (default |
| no | Require |
| no | Comma-separated CORS origins for openapi mode (default |
| no | TLS cert/key (PEM) — serves HTTPS in HTTP modes |
Common prefix for every deployment:
export ELOG_URL=https://elog.example.org/elog
export ELOG_USER=your-shared-user
export ELOG_PASSWORD=your-shared-passwordDeployment
ELOG_MCP_TRANSPORT picks how clients talk to the server:
Transport | Clients | Endpoint |
| Claude Desktop, opencode, other local MCP hosts | spawned process |
| Web UIs speaking MCP over HTTP (LibreChat, …) |
|
| OpenAPI tool servers (Open WebUI, …) | spec at |
stdio (local MCP clients)
The command you put in the client config depends on how you installed elog-mcp:
Installation | Command |
uvx (no install needed) |
|
pipx |
|
pip / from source |
|
From source (dev) |
|
Finding the binary path. If which elog-mcp does not print a path (e.g.
you installed with pipx but your client runs in a different shell environment),
use:
pipx runpip show elog-mcp | grep Location
# → …/site-packages
# then: find …/site-packages/../../bin -name elog-mcpor on most systems simply:
ls ~/.local/bin/elog-mcpUse the absolute path in that case.
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"elog": {
"command": "uvx",
"args": ["elog-mcp"],
"env": { "ELOG_URL": "…", "ELOG_USER": "…", "ELOG_PASSWORD": "…" }
}
}
}If you installed with pipx and prefer the standalone binary:
{
"mcpServers": {
"elog": {
"command": "/home/YOU/.local/bin/elog-mcp",
"env": { "ELOG_URL": "…", "ELOG_USER": "…", "ELOG_PASSWORD": "…" }
}
}
}opencode (~/.config/opencode/opencode.json):
{
"mcp": {
"elog": {
"type": "local",
"command": ["uvx", "elog-mcp"],
"environment": { "ELOG_URL": "…", "ELOG_USER": "…", "ELOG_PASSWORD": "…" }
}
}
}If you installed with pipx and prefer the standalone binary:
{
"mcp": {
"elog": {
"type": "local",
"command": ["/home/YOU/.local/bin/elog-mcp"],
"environment": { "ELOG_URL": "…", "ELOG_USER": "…", "ELOG_PASSWORD": "…" }
}
}
}From source (without installing):
uv run elog-mcpstreamable-http (remote MCP clients)
ELOG_MCP_TRANSPORT=streamable-http elog-mcpRegister http://127.0.0.1:8000/mcp as a remote MCP server in your UI.
openapi (Open WebUI & friends)
ELOG_MCP_TRANSPORT=openapi \
ELOG_API_KEY=pick-a-random-secret \
elog-mcpFive read-only endpoints mirror the tools below (operationIds equal the tool
names). In Open WebUI: Settings → Tools → + (user-level, fetched by your
browser) or Admin Settings → Tools (global, fetched by its backend), enter
the server URL, and put your ELOG_API_KEY value in the Bearer key field.
HTTPS: pass ELOG_MCP_CERTFILE/ELOG_MCP_KEYFILE, or put a reverse proxy
or tunnel (e.g. cloudflared tunnel --url http://localhost:8000) in front.
For locally-trusted dev certs: mkcert -install && mkcert localhost 127.0.0.1 ::1,
then feed the two files to the variables above (absolute paths).
Reachability rules of thumb:
Everything binds
127.0.0.1by default. SetELOG_MCP_HOST=0.0.0.0and anELOG_API_KEYwhenever someone else must reach the server.Client in Docker?
127.0.0.1inside its container is not your machine — usehttp://host.docker.internal:<port>(--add-host=host.docker.internal:host-gatewayon Linux).Hosted instance (e.g. a university WebUI)? It can never reach your laptop's loopback. User-level tool servers are additionally subject to that site's Content-Security-Policy — if DevTools shows the request as Transferred: CSP, the browser blocked it and only an IT-side
connect-srcchange helps. The practical route: deploy elog-mcp somewhere reachable and let the admins register it once as a global tool server.
Tools
Same five operations on every transport (REST routes shown for openapi):
Tool | REST route | Purpose |
|
| List logbooks |
|
| Regex full-text + attribute + date filtering; returns excerpts |
|
| Full entry body, attributes, threading |
|
| Newest-first shortcut |
|
| Base64 attachment content |
Notes:
Text and attribute filters are regular expressions (elogd semantics);
^value$anchors give exact matches.Dates:
YYYY-MM-DD[ HH:MM[:SS]], or uselast_daysinstead of a range;logbook="*"searches all known logbooks.Errors surface uniformly:
EntryNotFound,AuthFailed,ServerError,NetworkError,InvalidLogbook(REST status codes: 404/502/502/503/404, invalid query parameters → 400/422).
Development
uv run pytest # unit tests, offline
uv run pytest -m live # live suite (needs ELOG_TEST_URL)
uv run ruff check . # lint
uv run ruff format --check . # formatting gate
uv run mypy src # type check (strict)Protocol details and wire-format references live in RESOURCES.md;
architecture and tool contracts in SPEC.md.
Available Tools
5 toolselog_get_attachmentA
Download an attachment (screenshot, config file, ...) as base64 content.
Args: logbook: Name of the logbook holding the attachment. filename: Attachment filename exactly as listed on the entry.
Returns {filename, content_b64, mime, size}; embed via MCP resource mechanisms when presenting to users.
Inputs: logbook (required), filename (required). Returns: object
elog_get_entryA
Read one logbook entry in full: all attributes, complete body, attachments.
Args: logbook: Name of the logbook containing the entry. entry_id: Numeric message ID of the entry.
Returns the full entry record including the untruncated body text, threading info (reply_to / in_reply_to) and the canonical web URL.
Inputs: logbook (required), entry_id (required). Returns: object
elog_get_recent_entriesA
Fetch the newest entries of a logbook, newest first.
Args: logbook: Name of the logbook to read. count: Number of recent entries to return.
Returns {"total": int, "entries": [...]} with excerpts like elog_search.
Inputs: logbook (required), count. Returns: object
elog_list_logbooksA
List the logbooks available on the configured ELOG server.
Returns a list of {name, description?, url} objects. The optional ELOG_LOGBOOKS environment variable restricts and orders the result.
Inputs: no named parameters. Returns: result
elog_searchA
Search logbook entries by full text, attributes, and/or date.
Args: text: Regular expression matched against entry message bodies. Use ^…$ anchors for exact matches. attributes: Exact attribute filters as regular expressions, e.g. {"Author": "^jdoe$", "Category": "DAQ"}. date_from: Inclusive range start, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM[:SS]'. date_to: Inclusive range end, same formats (time defaults to 23:59:59). last_days: Show entries from the last N days instead of an explicit range. logbook: Logbook name to search, or "*" to search all known logbooks. max_results: Maximum number of entries returned per page (server cap 100000). reverse: Sort newest-first when true, oldest-first when false.
Returns {"total": int, "entries": [{id, logbook?, date_raw, date_iso?, attributes{}, text_excerpt, encoding, encoding_name, attachments[], reply_to[], in_reply_to?, url}]}.
Each entry's text_excerpt is a ~500-char window centred on the first
occurrence of the search phrase (when text is provided). The full entry
body may contain additional matches; use elog_get_entry for the complete
text.
Inputs: text, date_to, logbook, reverse, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct operation (listing logbooks, searching, reading a single entry, browsing recent entries, fetching attachments), so confusion is unlikely. However, elog_get_recent_entries overlaps with elog_search's last_days and reverse options, making the boundary between them slightly less sharp.
The elog_ prefix and verb-first style are consistent, and most tools follow a verb_noun pattern such as elog_list_logbooks, elog_get_entry, and elog_get_attachment. elog_search is the one outlier because it omits an explicit object, which is a minor deviation from the otherwise predictable pattern.
Five tools is a well-scoped size for a read-only logbook client. Each tool covers one essential need—discovering logbooks, searching entries, reading full entries, browsing recent entries, and downloading attachments—without unnecessary redundancy or bloat.
The read-oriented surface is complete for searching, reading, and retrieving attachments from ELOG entries. The only notable gap is the absence of write or lifecycle tools such as creating, replying to, or editing entries, though this appears to be an intentional read-only scope.
Maintenance
Related MCP Connectors
Read-only search and retrieval of published books, articles and authors, with public catalog links.
Search and read Empryo's documentation. Read-only, no auth, no local access.
Read-only search and page retrieval from the public Atisbo documentation corpus. No authentication.
Read-only info on WeAD apps, status, abstracts and public documents.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables discovery of HEPData records, tables, and data access with read-only operations and export links.9137 PyPIGPL 2.0- AlicenseAqualityDmaintenanceRead-only MCP server for exploring and searching OpenSearch clusters, enabling log analysis, index exploration, and query execution.8MIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for Elasticsearch log querying. Enables natural language search, filtering, context retrieval, and aggregation of logs.-
- FlicenseNot gradedqualityDmaintenanceEnables read-only querying of a local Grafana Loki instance, providing log search, service listing, and health check capabilities.-