atlas-introspect-mcp
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., "@atlas-introspect-mcp List my recent chat conversations"
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.
atlas-introspect-mcp
An MCP server that lets ATLAS look at — and edit — itself:
surface | what you get | how |
conversations | list, search, read full chat history | ATLAS REST API (read-only) |
| read, add/replace/delete a server, replace the file | on disk, atomic + backed up |
workspaces | list, create, update, delete | ATLAS REST API |
custom prompts | the per-user prompt library | ATLAS REST API |
prompt files | the on-disk | on disk, backed up |
Why it goes through the HTTP API
Chat history, workspaces, and prompts all live in one DuckDB file
(data/chat_history.db). DuckDB is single-writer and the ATLAS process holds
that write lock for its entire lifetime — a second process opening the file,
even read-only, fails with a lock conflict. So this server asks ATLAS over
loopback HTTP instead. That also means per-user scoping is enforced by ATLAS
rather than reimplemented here.
Only mcp.json and prompts/*.md are touched directly; ATLAS has no API for
either.
Being a separate process is what makes calling back into ATLAS safe: ATLAS awaits this server's stdio reply while its own event loop stays free to serve the request. An in-process tool doing the same thing would deadlock.
Related MCP server: AnythingLLM Control Plane MCP Server
Identity
Every query is scoped to one user, sent as X-User-Email. With
DEBUG_MODE=true ATLAS honours that header; with it off, the header is what
the auth proxy would have supplied, so the same flag works either way. The
default is test@test.com — the test user ATLAS falls back to in debug mode,
and therefore the owner of the conversations created through the UI on this
host.
Install
git clone https://github.com/garland3/atlas-introspect-mcp
cd atlas-introspect-mcp
uv venv .venv
uv pip install -e ".[dev]" --python .venv/bin/pythonStandalone check (with ATLAS running):
.venv/bin/atlas-introspect-mcp --list-tools
.venv/bin/python -c "
import asyncio; from fastmcp import Client
from fastmcp.client.transports import StdioTransport
async def m():
async with Client(StdioTransport(command='.venv/bin/atlas-introspect-mcp', args=['--stdio'])) as c:
print(await c.call_tool('atlas_status', {}))
asyncio.run(m())"Register with ATLAS
Add to your ATLAS config/mcp.json (absolute paths — the command is looked up
on the service manager's PATH, not your shell's), then restart ATLAS:
"atlas_introspect": {
"command": [
"/abs/path/to/atlas-introspect-mcp/.venv/bin/atlas-introspect-mcp",
"--stdio",
"--atlas-url", "http://127.0.0.1:8090",
"--user", "test@test.com"
],
"cwd": "/abs/path/to/atlas-introspect-mcp",
"transport": "stdio",
"groups": ["users"],
"description": "Introspect and configure this ATLAS instance: browse chat history, read/edit config/mcp.json, manage workspaces and custom prompts.",
"short_description": "ATLAS self-introspection",
"compliance_level": "Public"
}Add "--read-only" to the command for a view-only build; every mutating tool
then refuses instead of writing.
Ports: stdio needs none. --transport http defaults to 8101. It refuses
port 8080 outright — on a host running k3s, klipper-lb DNATs 8080 to Traefik
including on 127.0.0.1, so a server bound there receives nothing and every
request comes back as an empty 500 with no line in your log.
Configuration
Every flag has an environment-variable equivalent.
flag | env var | default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| off |
|
|
|
|
|
|
Tools
Conversations (read-only) — list_conversations, search_conversations,
get_conversation, list_conversation_tags
config/mcp.json — get_mcp_config, upsert_mcp_server,
delete_mcp_server, replace_mcp_config
Workspaces — list_workspaces, create_workspace, update_workspace,
delete_workspace
Custom prompts — list_custom_prompts, get_custom_prompt,
create_custom_prompt, update_custom_prompt, delete_custom_prompt
On-disk prompt files — list_prompt_files, read_prompt_file,
write_prompt_file
Health — atlas_status
Things that will bite
mcp.jsonedits are not live. ATLAS spawns stdio servers at startup. Every write tool says so in its result; apply withsystemctl --user restart atlasor./redeploy.sh --no-pull.Editing your own entry works, but only takes effect on restart — at which point a broken entry means this server is gone and you cannot fix it from inside ATLAS. Backups land next to the file as
mcp.json.bak-<stamp>.upsert_mcp_serverreplaces an entry wholesale, it does not merge. Read it first, change it, send the whole thing back. Same for a workspaceconfigand a prompt'scontent.Conversation tools are read-only by design. There are delete endpoints in ATLAS; they are deliberately not exposed here.
write_prompt_filechanges every chat in the instance. It backs up first and, likemcp.json, applies on the next restart.
Tests
.venv/bin/pytestThey cover the file-editing and validation logic (atomic write, backup, traversal refusal, lint warnings, read-only mode) against a temp directory — no running ATLAS needed.
Available Tools
21 toolsatlas_statusA
Check that ATLAS is up and report what this server is pointed at.
Start here when another tool fails: it distinguishes "ATLAS is down" from "the feature is disabled" from "this server is aimed at the wrong URL".
Inputs: no named parameters. Returns: object
create_custom_promptB
Add a prompt to this user's library.
Inputs: title (required), content (required). Returns: object
create_workspaceB
Create a workspace.
The selection fields are exactly what ATLAS restores when the workspace is applied; unknown keys are rejected by the API, so use these arguments rather than a free-form config blob.
Inputs: name (required), description, rag_enabled, selected_tools, +3 more. Returns: object
delete_custom_promptA
Delete a custom prompt. Not recoverable — confirm with the user first.
Inputs: prompt_id (required). Returns: object
delete_mcp_serverA
Remove a server entry from config/mcp.json (previous file is backed up).
Inputs: name (required). Returns: object
delete_workspaceA
Delete a workspace. Not recoverable — confirm with the user first.
Inputs: workspace_id (required). Returns: object
get_conversationA
Read one full conversation, including its messages.
Long messages are clipped per-message so a single large tool result cannot
swamp the answer; raise max_message_chars when you need the full text of
a specific turn.
Inputs: conversation_id (required), include_metadata, max_message_chars. Returns: object
get_custom_promptA
Read one custom prompt in full, by id.
Inputs: prompt_id (required). Returns: object
get_mcp_configA
Read config/mcp.json — the whole file, or one server entry.
Inputs: lint, server. Returns: object
list_conversationsA
List saved conversations, newest first.
Returns id, title, model, timestamps, message count, and a short preview.
Use get_conversation for the messages themselves.
Inputs: tag, limit, offset. Returns: object
list_conversation_tagsA
List the tags this user has applied to conversations.
Inputs: no named parameters. Returns: object
list_custom_promptsB
List this user's custom prompt library.
Inputs: include_content. Returns: object
list_prompt_filesA
List the markdown prompt files ATLAS loads from disk.
These are the defaults (system prompt, agent reason/observe/summary prompts), separate from the per-user library above. Editing one changes behaviour for every chat, and takes effect on the next ATLAS restart.
Inputs: no named parameters. Returns: object
list_workspacesA
List this user's workspaces (saved bundles of prompt/tool/RAG selections).
Inputs: no named parameters. Returns: object
read_prompt_fileC
Read one on-disk prompt file.
Inputs: name (required). Returns: object
replace_mcp_configA
Overwrite config/mcp.json with a complete JSON document.
For restructuring several entries at once. Rejected unless content parses
as an object of objects; the previous file is backed up either way. Prefer
upsert_mcp_server for a single-server change.
Inputs: content (required). Returns: object
search_conversationsC
Search conversations by title and message content.
Inputs: query (required), limit. Returns: object
update_custom_promptA
Edit a custom prompt's title or content.
content replaces the whole text — read it with get_custom_prompt first
if you are amending rather than rewriting.
Inputs: prompt_id (required), title, content. Returns: object
update_workspaceA
Update a workspace's name, description, or selections.
config replaces the whole selection snapshot when given — read the
current one with list_workspaces first. Allowed keys: active_prompt_key,
selected_tools, selected_prompts, selected_data_sources, rag_enabled.
Anything else is rejected by ATLAS.
Inputs: workspace_id (required), name, config, description. Returns: object
upsert_mcp_serverA
Add or replace one server entry in config/mcp.json.
The entry is replaced wholesale, not merged — read the current entry with
get_mcp_config first and send it back with your change applied. The rest
of the file is untouched, and the previous file is backed up.
A stdio entry looks like::
{"command": ["/abs/path/.venv/bin/entrypoint", "--stdio"],
"cwd": "/abs/path", "transport": "stdio",
"groups": ["users"], "description": "what it does"}Inputs: name (required), config (required). Returns: object
write_prompt_fileA
Overwrite an on-disk prompt file, backing up the previous version.
Affects every chat in this instance and applies on the next ATLAS restart.
Confirm with the user before changing system_prompt.md.
Inputs: name (required), content (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool targets a distinct resource and action: conversations, workspaces, custom prompts, prompt files, and MCP config are cleanly separated. Even similar operations like search_conversations vs list_conversations are differentiated by their descriptions (search vs browse). No two tools appear to do the same thing.
All tool names follow a consistent verb_noun pattern (list_, get_, create_, update_, delete_, read_, write_, search_, upsert_, replace_) with snake_case throughout. Only 'atlas_status' deviates slightly, but it's a special health-check tool and still fits the imperative style.
At 21 tools, the server is on the heavier side, but the scope (managing conversations, workspaces, prompts, prompt files, and MCP config) justifies the count. Each tool addresses a specific need, and there is no obvious duplication or bloat.
Workspaces, custom prompts, and MCP config all have full CRUD (or equivalent) coverage. Conversations lack create/delete, and tags are read-only, but those may be intentionally absent for an introspection tool. The ability to read and write prompt files covers the on-disk prompt management need. Minor gaps exist, but agents can work around them.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Remote MCP server to run your Atako AI agents: chat, projects, files, integrations and channels.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP-based interaction with a local Hermes Agent installation, providing file read/search, skill management, and optional sandboxed write, terminal, and memory tools.9MIT
- AlicenseAqualityBmaintenanceEnables managing and controlling AnythingLLM instances through MCP, providing tools to list, create, and delete workspaces, retrieve system environment settings, and get vector counts.51MIT
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT and other MCP clients to browse, search, edit and upload files, run commands and interactive terminals, inspect Git history and worktrees, dispatch coding agents, and install composable plugins within locally registered workspaces. Requests execute under the user's own machine with per-request approval or auto-approval, keeping files, tasks and results local unless explicitly returned.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables administration of LibreChat through MCP, providing tools to manage Skills, Agents, scheduled tasks, Prompt library, and visibility/permissions. It also offers a generic API request tool for interacting with upstream endpoints.MIT