Chat Logger MCP server

Saves chat conversations as formatted Markdown files with timestamps and role information for record-keeping and analysis.
Back to servers
Provider
Alexi Feng
Release date
Apr 06, 2025
Language
Python
Stats
4 stars

MCP Chat Logger is a simple yet powerful tool that saves chat histories in Markdown format for easy viewing and sharing. It captures conversations with timestamps and organizes them with unique session IDs, making it perfect for anyone who needs to maintain a record of their model interactions.

Installation

Installing via Smithery

For Claude Desktop users, you can install MCP Chat Logger automatically via Smithery:

npx -y @smithery/cli install @AlexiFeng/MCP_Chat_Logger --client claude

Manual Installation

  1. Clone the repository:
git clone https://github.com/yourusername/MCP_Chat_Logger.git
cd MCP_Chat_Logger
  1. Install dependencies:

Make sure you have uv installed first, then:

uv add "mcp[cli]"

Usage

Starting the MCP Server

  1. Start the MCP service in the project directory:
uv run chat_logger.py

Configuring in Editor

  1. Add the MCP server configuration in Cursor or Cherry Studio:
"chat_logger": {
  "name": "chat_logger",
  "isActive": false,
  "command": "uv",
  "args": [
    "--directory",
    "PROJECT_PATH",  // Replace with actual path (e.g., ~/MCP_Chat_Logger/)
    "run",
    "chat_logger.py"
  ]
}

Features

The MCP Chat Logger provides:

  • Integration with large language models to save chat history as formatted Markdown files
  • Automatic timestamp addition for each message
  • Customizable save directory
  • Session ID support to identify different conversations

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later