gmail-mcp

gmail-mcp

Exposes Gmail inbox actions (list, archive, label) as MCP tools via a browser extension and local bridge, without requiring the Gmail API or OAuth.

Category
Visit Server

README

gmail-mcp

Exposes the Gmail tab open in your browser as MCP tools — no Gmail API, no OAuth. A browser extension reads the inbox with InboxSDK and acts on it by simulating the Gmail UI; a local bridge relays commands from any MCP client (e.g. Claude Code) to that tab.

MCP client (Claude)
   │ stdio
server/mcp.js        one per client session, forwards over HTTP
   │ POST /<command>  (Hono, port 8766)
server/bridge.js     single daemon
   │ WebSocket (port 8765)
extension            MV3, background ws client + content script
   │ InboxSDK / DOM
Gmail tab

Tools

Tool What it does
list_visible_emails Lists the thread rows currently rendered (subject, contacts, date, thread_id)
archive_thread Archives a visible thread (row checkbox + toolbar button)
label_thread Applies an existing label to a visible thread (row context menu)

Setup

  1. Extension: cd extension && npm install && npm run build, then load extension/dist/ via chrome://extensions → Developer mode → Load unpacked. Open (or reload) Gmail.
  2. Bridge: cd server && npm install && npm run bridge — keep it running.
  3. MCP: claude mcp add gmail-mcp -- node <repo>/server/mcp.js, then start a new session.

Test without an MCP client:

curl -X POST localhost:8766/list_visible_emails
curl -X POST localhost:8766/archive_thread -d '{"thread_id":"..."}'

Limitations

  • The Gmail tab must be open; only currently-rendered rows are visible to the tools.
  • Actions simulate the UI: stable attributes are preferred (act="7", roles), but label_thread matches menu text and assumes an English Gmail UI. A Gmail redesign can break actions — the durable alternative is the official Gmail API.
  • The bridge listens on localhost without auth; anything local can drive your Gmail tab. Don't expose the ports.
  • InboxSDK telemetry is disabled (eventTracking / globalErrorLogging off).

Development

npm run lint / npm run format (Biome, 80 cols) from the repo root. New extension feature = one file in extension/src/features/ + one line in extension/src/content.js + a tool in server/mcp.js.

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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