MCP server for searching local browser history files. Also compatible with llm-tools.
Project description
Local Browser History MCP
An MCP server that allows searching local browser history files through a unified interface. Works with MCP-compatible clients and as a tool for the llm CLI tool.
The tool currently supports Chrome, Firefox, and Safari browser histories.
Installation
MCP Server (Claude Desktop, Claude Code, etc.)
Install with MCP support:
pip install llm-tools-browser-history
Quick start for Claude Desktop - add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"browser-history": {
"command": "uvx",
"args": [
"llm-tools-browser-history",
]
}
}
}
Once configured, you can use the browser_history tool in conversations with Claude.
Note that the CLI supports additional options as needed:
browser-history-mcp --help
llm CLI tool
Install for use with llm:
# install the plugin:
llm install llm-tools-browser-history
# see available plugins:
llm plugins
...
{
"name": "llm-tools-browser-history",
"hooks": [
"register_tools"
],
"version": "0.1.0"
},
...
Examples:
# Search for pages mentioning yosemite in title or URL
llm -T llm_time -T BrowserHistory "what pages about yosemite did I look up recently?"
# Limit to Firefox and Safari sources
llm -T llm_time -T 'BrowserHistory(["firefox","safari"])' "what pages about yosemite did I look up recently?"
llm -T BrowserHistory "show a table of how much I used each browser over the past year by month"
Security and Privacy
Warning: This tool has read-access to your entire browser history. You risk sending this highly sensitive personal data to third-party services (like OpenAI).
See the lethal trifecta article for more information about the risks of using tools like this with LLMs.
To mitigate the risks of data leakage:
- Only runs queries against a copy of the target browser's history database (so any malicious modification has no effect).
- Limits the number of results to no more than 100 records per tool use.
- Does not return the entire browser history record. This tool will return a subset of fields (URL, title, visit date). Query parameters are stripped from URLs and timestamps only include the date (not the time).
Dev setup
make setup
make test
pip install -e .
llm -T llm_time -T BrowserHistory --td "what pages about yosemite did I look up recently?"
Documentation
- MCP Setup Guide - Setting up the MCP server for Claude Desktop, Claude Code, etc.
ADRs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_tools_browser_history-0.2.0.tar.gz.
File metadata
- Download URL: llm_tools_browser_history-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46eed4e748a2cf32feef2fee21401b7351b67540c8b845166db42523b1e28fa2
|
|
| MD5 |
d6278396b904efa896f2203c051a0143
|
|
| BLAKE2b-256 |
60040eeb6f9b4f603450b35de660826ebf806610bd7203e2009fee540c46bbe1
|
File details
Details for the file llm_tools_browser_history-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llm_tools_browser_history-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eddc8a57b97ad81ea13432c845f3d464f930ea7ec6f7fe92facb2c68609280e
|
|
| MD5 |
f499c8c5d6498da359b0915bf07c7dac
|
|
| BLAKE2b-256 |
448e839f1731f32b96ed2b052744158c321d16198bcf1b23e553a17293bd0928
|