AgentClip MCP Server

AgentClip MCP Server

Enables AI agents to store, search (keyword and semantic), retrieve, update, and delete personal browser clips from a Cloudflare-backed store, authenticated via per-user token.

Category
Visit Server

README

AgentClip

Clip selected browser text — with a confirm/edit step — into a personal store on Cloudflare, then retrieve it from AI agents (MCP) and tools over a per-user-token-authenticated REST API.

  • agent — AI clients reach your clips over MCP / REST with a per-user token.
  • clip — a Chrome extension (Manifest V3) adds a "Save to AgentClip" context menu; you edit the text before it's saved.

Production runs as a single Cloudflare Worker at https://agentclip.0xkaz.com serving the API, the MCP server, Google OAuth, and the dashboard from one origin.

  • Live app: https://agentclip.0xkaz.com
  • Source: https://github.com/0xkaz/agentclip
  • 日本語版 README: README.ja.md

Features

  • Clip & edit — right-click any selection → edit content/title/tags/source → save.
  • Keyword search — substring match over content/title/tags (works for Japanese too).
  • Semantic search — meaning-based search via Workers AI embeddings + Vectorize.
  • Per-clip encryption — mark a clip to encrypt it at rest; encrypted clips are excluded from search (and shown masked, with a reveal toggle).
  • Share links — publish a single clip at a public read-only /s/<slug> URL; revoke anytime (encrypted clips can't be shared).
  • MCP + REST — AI agents and tools read/write your clips with a per-user token.
  • Google sign-in for the dashboard; opaque per-user Bearer tokens for machines.

Use the hosted app

The fastest path — no local setup:

  1. Open https://agentclip.0xkaz.com and Sign in with Google.
  2. Go to API Tokens → create a token (ac_live_…, shown once — copy it).
  3. Open Setup & Usage in the app — it shows your exact MCP config and curl examples, plus the Chrome-extension steps below.

The dashboard has three pages:

Page What it does
Snippets Browse, add/edit/delete, keyword & semantic search your clips
API Tokens Create / revoke per-user Bearer tokens
Setup & Usage Copy-paste MCP config, REST curl, and extension setup

Monorepo layout

apps/api         Cloudflare Worker — REST + MCP + Google OAuth, D1, serves dashboard
apps/web         React + Vite dashboard — landing page + Snippets / Tokens / Setup
apps/extension   Chrome MV3 extension — capture + confirm/edit
packages/shared  shared TypeScript types

The rest of this README covers running and deploying it yourself. Requirements: Node 20+, pnpm 9+ (npm i -g pnpm), a Cloudflare account, and a Google OAuth client.


1. Clone & install

git clone https://github.com/0xkaz/agentclip.git
cd agentclip
pnpm install      # or: make install

2. Configure Cloudflare D1

pnpm --filter @agentclip/api exec wrangler d1 create agentclip

Paste the returned database_id into both [[d1_databases]] blocks in apps/api/wrangler.toml (the top-level one and the [env.production] one).

make db-init                # apply schema.sql to the LOCAL D1
# later, for production:
pnpm --filter @agentclip/api db:init:remote

3. Configure Google OAuth

In Google Cloud Console → Credentials → create an OAuth client ID (Web application). Add authorized redirect URIs:

  • Local: http://localhost:8787/auth/google/callback
  • Production: https://agentclip.0xkaz.com/auth/google/callback

Then create local secrets:

cp apps/api/.dev.vars.example apps/api/.dev.vars
# edit apps/api/.dev.vars:
#   GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, SESSION_SECRET (any random 32+ byte string)

4. Run locally

make dev                              # API + MCP on http://localhost:8787
pnpm --filter @agentclip/web dev      # dashboard on http://localhost:5173

Open http://localhost:5173, sign in with Google, and create an API token.

5. Install the Chrome extension

pnpm --filter @agentclip/extension build      # outputs apps/extension/dist
  1. Open chrome://extensions → enable Developer mode.
  2. Load unpacked → select apps/extension/dist.
  3. Click the AgentClip icon → set API base URL and paste the token from the dashboard.
    • Local: http://localhost:8787
    • Production: https://agentclip.0xkaz.com
  4. Select text on any page → right-click → Save to AgentClip → edit → Save.

6. Deploy to production (agentclip.0xkaz.com)

# one-time: set production secrets
pnpm --filter @agentclip/api exec wrangler secret put GOOGLE_CLIENT_ID --env production
pnpm --filter @agentclip/api exec wrangler secret put GOOGLE_CLIENT_SECRET --env production
pnpm --filter @agentclip/api exec wrangler secret put SESSION_SECRET --env production
pnpm --filter @agentclip/api db:init:remote        # schema on remote D1

make deploy        # builds the dashboard, then deploys the Worker (--env production)

The custom domain route (agentclip.0xkaz.com) requires the Cloudflare API token to have Zone:Edit on 0xkaz.com in addition to Workers/D1 edit. Without it, deploy the Worker and bind the domain from the dashboard, or use the *.workers.dev URL.


Using the REST API

# save (add "encrypted": true to encrypt at rest + exclude from search)
curl -X POST https://agentclip.0xkaz.com/api/snippets \
  -H "Authorization: Bearer ac_live_..." \
  -H "Content-Type: application/json" \
  -d '{"content":"hello","tags":"demo"}'

# keyword search (substring; works for Japanese)
curl "https://agentclip.0xkaz.com/api/snippets?q=hello" -H "Authorization: Bearer ac_live_..."

# semantic search (meaning-based)
curl "https://agentclip.0xkaz.com/api/snippets?q=greeting&mode=semantic" -H "Authorization: Bearer ac_live_..."

# update / delete
curl -X PATCH  https://agentclip.0xkaz.com/api/snippets/1 -H "Authorization: Bearer ac_live_..." -H "Content-Type: application/json" -d '{"content":"updated"}'
curl -X DELETE https://agentclip.0xkaz.com/api/snippets/1 -H "Authorization: Bearer ac_live_..."

Using MCP

Point an MCP client at https://agentclip.0xkaz.com/mcp with header Authorization: Bearer ac_live_.... Tools: store_snippet, search_snippets, semantic_search, get_snippet, list_recent, update_snippet, delete_snippet.

Semantic search indexes new clips automatically; to index clips made earlier, open the Snippets page, switch to Semantic, and click Rebuild index (or POST /api/my/reindex). Vectorize is eventually consistent (new clips become searchable within ~1 minute).

See docs/architecture.md and docs/agent-workflow.md for details.

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