Chrome History & Bookmarks MCP Server

Chrome History & Bookmarks MCP Server

Enables AI assistants to search and analyze Chrome browser history and bookmarks data locally, including keyword searches, date range filtering, recent browsing activity, and usage statistics across all platforms.

Category
Visit Server

README

Chrome History & Bookmarks MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with tools to analyze Chrome browser history and bookmarks data.

Features

๐Ÿ” History Search - Search through Chrome browsing history by keywords, URLs, and date ranges
๐Ÿ“Š History Statistics - Get insights about your browsing data including date ranges and visit counts
โฐ Recent Browsing - View recent browsing activity from the last 24 hours (configurable)
๐Ÿ”– Bookmarks Access - Read and analyze Chrome bookmarks (coming soon)
๐Ÿ“ˆ Browsing Patterns - Analyze browsing habits and patterns (coming soon)
๐Ÿ“ค Data Export - Export history and bookmarks to various formats (coming soon)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/chrome-history-mcp-server.git
    cd chrome-history-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Run the server:

    node src/mcp-server.js
    

Usage with Claude Desktop

  1. Configure Claude Desktop by editing your config file:

    macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    Windows: %APPDATA%/Claude/claude_desktop_config.json

  2. Add the MCP server configuration:

    {
      "mcpServers": {
        "chrome-history": {
          "command": "node",
          "args": ["/path/to/your/project/src/mcp-server.js"],
          "env": {}
        }
      }
    }
    
  3. Restart Claude Desktop and start using the tools!

Available Tools

search_history

Search through Chrome browsing history with optional date filtering.

Example usage:

"Search my browser history for 'github'"
"Find all YouTube videos I watched last week"
"Show me what I browsed between 2024-01-01 and 2024-01-31"

get_recent_browsing

Get browsing activity from recent hours with visit details and timestamps.

Example usage:

"Show me what I've been browsing in the last 24 hours"
"What websites did I visit in the last 6 hours?"

get_history_stats

Get statistics about your Chrome history database including date ranges and total entries.

Example usage:

"Show me my Chrome history statistics"
"What's the date range of my browsing history?"

How It Works

This MCP server:

  1. Locates Chrome - Automatically finds Chrome profile directory across platforms (macOS, Windows, Linux)
  2. Reads SQLite Database - Safely accesses Chrome's History database in read-only mode
  3. Provides Tools - Exposes browsing data through standardized MCP tools
  4. Cross-Platform - Works with Chrome, Chromium, and various Chrome profiles

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Claude        โ”‚    โ”‚   MCP Server     โ”‚    โ”‚   Chrome        โ”‚
โ”‚   Desktop       โ”‚โ—„โ”€โ”€โ–บโ”‚   (This Project) โ”‚โ—„โ”€โ”€โ–บโ”‚   Browser       โ”‚
โ”‚   (AI Client)   โ”‚    โ”‚                  โ”‚    โ”‚   SQLite DB     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Technical Details

  • Language: JavaScript (ES modules)
  • Protocol: Model Context Protocol (MCP)
  • Database: SQLite3 (Chrome's History database)
  • Platforms: macOS, Windows, Linux
  • Chrome Support: Chrome, Chromium, multiple profiles

Security & Privacy

  • Read-only access - Never modifies Chrome data
  • Local processing - All data stays on your machine
  • No network requests - Operates entirely offline
  • Database safety - Uses SQLite read-only mode to prevent corruption

Requirements

  • Node.js 16+ with ES modules support
  • Chrome/Chromium installed and run at least once
  • MCP-compatible client (like Claude Desktop)

Contributing

Contributions welcome! Please feel free to submit issues and pull requests.

License

MIT License - see LICENSE file for details.

Troubleshooting

"Chrome installation not found"

  • Ensure Chrome is installed and has been run at least once
  • Check if you're using a custom Chrome profile location

"Database query failed"

  • Make sure Chrome is closed (database might be locked)
  • Verify Chrome profile permissions

"No results for date range"

  • Use get_history_stats to check available date range
  • Ensure date format is YYYY-MM-DD

Future Features

  • ๐Ÿ”– Full bookmarks analysis and search
  • ๐Ÿ“Š Advanced browsing pattern analysis
  • ๐Ÿ“ค Export to JSON, CSV, HTML formats
  • ๐Ÿงน Privacy-focused history cleaning tools
  • ๐Ÿ“ˆ Browsing time analytics and insights

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured