Activity Log MCP Server
A persistent activity log server that allows MCP-compatible AI assistants to log events, decisions, and system logs over HTTP, with a built-in web dashboard for monitoring and searching logs.
README
Activity Log MCP Server & Dashboard
A complete, persistent activity log system built with TypeScript. It allows any Model Context Protocol (MCP) compatible AI assistant (Gemini, Claude, Cursor, etc.) to log events, decisions, and system logs over HTTP, and provides a sleek vanilla web dashboard to inspect, search, filter, and monitor the ledger in real-time.
Designed with a "black box flight recorder / terminal ledger" aesthetic, and backed by a local JSON file database.
Technical Stack
- MCP Server: FastMCP (TypeScript) using
httpStreamtransport for remote access. - Dashboard Backend: Express.js serving static assets and REST API endpoints.
- Dashboard Frontend: Plain HTML, custom modern CSS, and vanilla JS with a responsive dark terminal aesthetic (paired fonts, dynamic tag colors per client source, automatic debounced search, collapsible metadata blocks, and ID hashing to optimize redraws).
- Database: Local filesystem JSON storage (
activity_log.jsonin the project root).
Getting Started
1. Environment Variables Configuration
- Copy the example environment file:
cp .env.example .env - Fill in the values inside
.env(optional):MCP_PORT: The port for the MCP server (default:8787).DASHBOARD_PORT: The port for the web dashboard (default:4000).
2. Installation & Build
# Install dependencies
npm install
# Compile TypeScript
npm run build
# Start both servers (MCP Server + Dashboard Backend) concurrently
npm start
Upon start, the local JSON file database activity_log.json will be automatically initialized in the project root as log entries arrive.
Connecting an AI Client
Since the server is initialized with transportType: "httpStream", it runs as a remote server over HTTP rather than stdio. Any MCP-compatible AI assistant can connect to it.
The server exposes two main endpoints:
- HTTP Streaming (Streamable HTTP):
http://localhost:8787/mcp(Used by modern clients like Gemini / Google Antigravity). - SSE (Server-Sent Events):
http://localhost:8787/sse(Used by standard SSE clients like Cursor or the MCP Inspector).
A. Cursor IDE Configuration
You can configure Cursor to use this server either globally or on a project level.
Option 1: Project-Specific Configuration
Create a .cursor/mcp.json file in the root of your Cursor workspace and add:
{
"mcpServers": {
"activity-log": {
"type": "sse",
"url": "http://localhost:8787/sse"
}
}
}
Option 2: Global Configuration via Settings GUI
- Open Cursor Settings (click the Gear icon in the top-right corner).
- Go to Features -> MCP.
- Click + Add New MCP Server.
- Set:
- Name:
activity-log - Type:
SSE - URL:
http://localhost:8787/sse
- Name:
- Click Save.
B. Google Antigravity IDE Configuration
To register the server globally inside the Antigravity IDE:
- Open the settings file
~/.gemini/config/mcp_config.jsonin your user profile directory. - Add your server under
mcpServersusing theserverUrlparameter:
{
"mcpServers": {
"activity-log": {
"serverUrl": "http://localhost:8787/mcp"
}
}
}
- Save the file and click Refresh in the IDE settings panel.
C. Claude Desktop Configuration
To configure Claude Desktop to connect to this server, edit your claude_desktop_config.json (located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:
{
"mcpServers": {
"activity-log": {
"command": "node",
"args": [
"c:/Projects/save-mcp/dist/server.js"
],
"env": {
"MCP_PORT": "8787"
}
}
}
}
Exposed MCP Tools
The MCP server exposes three main tools:
log_activity: Saves an activity entry.source(string): The client source name (e.g.,"claude","gemini","cursor").action_type(string): The action category (e.g.,"chat","code_edit","decision","error").content(string): The main body text/log contents.metadata(object, optional): A key-value object of structured context.
get_activity: Retrieves activity logs.source(string, optional): Filter by client source.action_type(string, optional): Filter by action type.limit(number, default20, max200): Maximum entries to fetch.
delete_activity: Deletes a specific entry.id(uuid string): The unique identifier of the entry to delete.
Deployed Mode (Cloud Deployment)
To allow multiple devices or external clients (like cloud-hosted Gemini/Claude API scripts) to log actions to the same database:
- Deploy this codebase to a cloud platform like Railway, Fly.io, or Render.
- Expose the environment variables (
MCP_PORT,DASHBOARD_PORT) in your cloud provider's dashboard. - Persistent Disk: If deploying to container environments, make sure to mount a persistent disk volume to ensure your
activity_log.jsonsurvives restarts.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。