Supports exporting code bookmarks and annotations to Markdown format for documentation and allows cross-referencing code locations using clickable Markdown links in bookmark descriptions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP BookmarksCreate an 'Auth Flow' group and bookmark the entry point in login.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Bookmarks
Code bookmarks extension for VSCode with MCP (Model Context Protocol) integration, allowing AI assistants to annotate and explain your codebase.
Features
MCP Integration: Provides MCP tools for AI assistants (Claude Code, Gemini, etc.) to create and manage bookmarks programmatically
AI Assistant Support: AI can analyze your code and create organized bookmarks to explain architecture, flows, and key components
Manual Management: Full support for creating, editing, and organizing bookmarks without AI
Hierarchical Bookmarks: Create parent-child bookmark relationships to represent call chains and code flows
Grouped Organization: Bookmarks are organized into groups by topic, feature, or analysis session
Category System: 4 built-in categories (entry-point, core-logic, issue, note) for clear organization
Markdown Link Support: Cross-reference code locations with clickable links in bookmark descriptions
Rich Sidebar: Interactive webview with tree/nested view modes, search, and filtering
Editor Integration: Inline gutter icons, hover previews, and CodeLens support
Quick Navigation: Jump to bookmarked locations, navigate between bookmarks with keyboard shortcuts
Export & Share: Export bookmarks to Markdown, store in
.vscode/mcp-bookmarks.jsonfor version control
Installation
Method 1: Install from VSIX (Recommended)
Download the latest
.vsixfile from ReleasesIn VSCode, open Command Palette (
Cmd+Shift+PorCtrl+Shift+P)Run
Extensions: Install from VSIX...Select the downloaded
.vsixfile
Method 2: Install from Source
MCP Configuration
After installing the extension, configure MCP integration for your AI tool.
Quick Setup
Open Command Palette (
Cmd+Shift+PorCtrl+Shift+P)Run
MCP Bookmarks: Copy MCP Setup CommandSelect your AI tool (Claude Code / Gemini / Codex / VSCode)
The command will be copied to your clipboard
For Claude Code Users
Run this command in your terminal (generated by the extension):
Or manually configure in .claude/mcp.json:
For Gemini Users
Run this command in your terminal (generated by the extension):
For VSCode MCP Extension Users
Press
Cmd+P(Mac) orCtrl+P(Windows)Type
MCP: Open User ConfigurationAdd the following configuration:
For Codex Users
Paste this snippet into ~/.codex/config.toml:
Note: Use the Copy MCP Setup Command to get the correct path automatically!
Usage
Complete Setup Flow
Step 1: Install Extension
Step 2: Configure MCP (Automatic)
Step 3: Start Using
Now your AI assistant can create bookmarks in your codebase!
Available MCP Tools
create_group- Create a bookmark groupadd_bookmark- Add a bookmark to a groupbatch_add_bookmarks- Add multiple bookmarks at oncelist_groups- List all groupslist_bookmarks- List bookmarks with filtersget_group- Get group details with all bookmarksget_bookmark- Get single bookmark detailsupdate_group- Update group infoupdate_bookmark- Update bookmark propertiesremove_group- Delete a group and its bookmarksremove_bookmark- Delete a single bookmarkclear_all_bookmarks- Clear all data (requires confirmation)
For Users
Commands:
MCP Bookmarks: Refresh- Refresh the bookmark treeMCP Bookmarks: Add Bookmark Here- Manually add a bookmark at cursorMCP Bookmarks: Create Group- Create a new bookmark groupMCP Bookmarks: Edit Group- Edit group title and descriptionMCP Bookmarks: Rename Group- Quick rename a group (F2)MCP Bookmarks: Delete Group- Delete a group and its bookmarksMCP Bookmarks: Edit Bookmark- Edit bookmark propertiesMCP Bookmarks: Delete Bookmark- Delete a bookmarkMCP Bookmarks: Move to Group...- Move bookmark to another groupMCP Bookmarks: Move Bookmark Up/Down- Reorder bookmarks within groupMCP Bookmarks: Search Bookmarks- Search through all bookmarksMCP Bookmarks: Export as Markdown- Export bookmarks to markdownMCP Bookmarks: Toggle View Mode- Switch between group/file viewMCP Bookmarks: Expand All- Expand all tree nodesMCP Bookmarks: Collapse All- Collapse all tree nodes
Configuration
Setting | Default | Description |
| 3333 | MCP Server port |
| true | Show bookmark icons in gutter |
| "group" | View mode: "group" or "file" |
| "simple" | Quick add mode: "full" (all options) or "simple" (title only) |
| "explanation" | Default category for new bookmarks |
| true | Show confirmation before deleting |
Data Storage
Bookmarks are stored in .vscode/mcp-bookmarks.json within your workspace. This file can be committed to version control to share bookmarks with your team.
Development
License
MIT