Session Logger 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., "@Session Logger MCPShow me my recent chat sessions"
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.
Session Logger MCP
An MCP server that saves and queries LLM chat conversations to structured log files.
Features
save_conversation: Save the current conversation to a JSONL log file
query_logs: Search saved conversations by session ID, user ID, keyword, or date range
list_sessions: View all saved sessions with summary information
Related MCP server: chatlab-mcp
Installation
Install dependencies:
npm installStart the MCP server:
npm startThe server will run on http://localhost:3000 by default. You can set a custom port with the PORT environment variable:
PORT=8080 npm startConfigure in Claude Desktop or Claude Code:
Add to your MCP settings file:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"session-logger": {
"url": "http://localhost:3000/sse"
}
}
}Claude Code (~/.config/claude-code/mcp_config.json):
{
"mcpServers": {
"session-logger": {
"url": "http://localhost:3000/sse"
}
}
}For remote access, replace localhost:3000 with your server's IP address or domain name.
Restart Claude Desktop or Claude Code
Usage
Save a conversation
Simply ask Claude:
Save this conversationClaude will use the save_conversation tool to log the entire conversation to a JSONL file.
Query logs
Search my logs for conversations about "python"Show me all sessions from todayList sessions
List my recent chat sessionsLog Storage
Logs are stored in: ~/.session-logger-mcp/logs/
Format: YYYY-MM-DD.jsonl
Each log entry contains:
timestamp
session_id
user_id (if provided)
role (user/assistant)
message content
token count
model info
metadata
Log Rotation
Log files automatically rotate when they exceed 10MB.
This server cannot be deployed
Maintenance
Related MCP Connectors
Ingest and search LogsLoom logs from coding agents.
Persistent memory for AI agents — log and recall conversation context over MCP.
Persistent memory for AI agents. Search, store, and recall across sessions.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLogs LLM interactions to local CSV or Markdown files with automatic categorization for detailed tracking. It provides an interactive HTML dashboard to visualize query volume, model usage, and category distribution.3-
- FlicenseAqualityFmaintenanceEnables AI assistants to query local ChatLab chat history using natural language, with tools for session listing, message retrieval, and analytics.178 npm-
- AlicenseAqualityCmaintenanceEnables searching and analyzing GitHub Copilot's conversation history stored locally, providing tools for full-text search, session listing, statistics, and file-based retrieval.64MIT
- AlicenseNot gradedqualityCmaintenancePersistent activity journal for AI agents - enables logging and querying decisions, changes, errors, and observations across sessions.7 npm1MIT