Claude Integration¶
Integrate the LinkDing MCP Server with Claude Desktop or Claude Code to manage your bookmarks directly through conversations.
Overview¶
Claude supports the Model Context Protocol (MCP), allowing you to extend its capabilities with custom tools. The LinkDing MCP Server provides Claude with the ability to:
- Search your bookmarks during conversations
- Add new bookmarks you discover while chatting
- Update and organize your bookmark collection
- Check for duplicate URLs before bookmarking
- Manage tags and archive bookmarks
Prerequisites¶
- LinkDing MCP Server cloned and installed with
uv sync - LinkDing instance running and accessible
- LinkDing API token
Claude Desktop Configuration¶
Step 1: Locate Configuration File¶
Find your Claude Desktop configuration file:
macOS:
Windows:
Linux:
Step 2: Add Server Configuration¶
Edit the configuration file to include the LinkDing MCP Server:
{
"mcpServers": {
"linkding": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "http://127.0.0.1:9090",
"LINKDING_API_TOKEN": "your_api_token_here",
"LINKDING_ENABLE_DESTRUCTIVE_ACTIONS": "true"
}
}
}
}
Security Note
The LINKDING_ENABLE_DESTRUCTIVE_ACTIONS=true setting allows Claude to add, update, delete, and archive your bookmarks. Only enable this if you trust Claude with full access to your bookmark collection. Without this setting, Claude can only search and read your bookmarks.
Step 3: Restart Claude Desktop¶
After saving the configuration file, restart Claude Desktop completely:
- Quit Claude Desktop (not just close the window)
- Relaunch Claude Desktop
- Wait for initialization (may take a few seconds)
Claude Code Configuration¶
Step 1: Locate Configuration File¶
Claude Code uses ~/.claude.json for MCP server configuration.
Step 2: Add Server Configuration¶
Edit ~/.claude.json to include the LinkDing MCP Server:
{
"mcpServers": {
"linkding": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "http://127.0.0.1:9090",
"LINKDING_API_TOKEN": "your_api_token_here",
"LINKDING_ENABLE_DESTRUCTIVE_ACTIONS": "true"
}
}
}
}
Step 3: Restart Claude Code¶
Restart Claude Code or start a new session for the configuration to take effect.
Configuration Examples¶
Using uv (Recommended)¶
If you installed with uv:
{
"mcpServers": {
"linkding": {
"command": "uv",
"args": ["run", "linkding-mcp"],
"env": {
"LINKDING_URL": "http://127.0.0.1:9090",
"LINKDING_API_TOKEN": "your_api_token_here"
}
}
}
}
Remote LinkDing Instance¶
{
"mcpServers": {
"linkding": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "https://bookmarks.example.com",
"LINKDING_API_TOKEN": "your_secure_token_here",
"LINKDING_ENABLE_DESTRUCTIVE_ACTIONS": "true"
}
}
}
}
Multiple LinkDing Instances¶
You can configure multiple LinkDing instances:
{
"mcpServers": {
"linkding-personal": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "http://127.0.0.1:9090",
"LINKDING_API_TOKEN": "personal_token",
"LINKDING_ENABLE_DESTRUCTIVE_ACTIONS": "true"
}
},
"linkding-work": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "https://work-bookmarks.company.com",
"LINKDING_API_TOKEN": "work_token",
"LINKDING_ENABLE_DESTRUCTIVE_ACTIONS": "true"
}
}
}
}
Debug Configuration¶
Enable debug mode for troubleshooting:
{
"mcpServers": {
"linkding": {
"command": "linkding-mcp",
"env": {
"LINKDING_URL": "http://127.0.0.1:9090",
"LINKDING_API_TOKEN": "your_token",
"LINKDING_LOG_LEVEL": "DEBUG"
}
}
}
}
Verification¶
Check Server Connection¶
Start a new conversation with Claude and ask:
"Can you list my available MCP tools?"
You should see the LinkDing tools listed, including:
search_bookmarksadd_bookmarkget_bookmarkupdate_bookmarkdelete_bookmarkarchive_bookmarkunarchive_bookmarkcheck_urllist_tagslist_bookmarks_by_tag
Test Basic Functionality¶
Try these test prompts:
"Search my bookmarks for python"
"List all my bookmark tags"
"Check if https://python.org is already in my bookmarks"
Usage Examples¶
Research Assistant¶
You: "I'm researching machine learning frameworks. Can you search my bookmarks for anything related to ML or AI?"
Claude: Uses search_bookmarks to find relevant content and presents organized results
You: "Great! I found this new article about PyTorch. Can you add it to my bookmarks with appropriate tags?"
Claude: Uses check_url to avoid duplicates, then add_bookmark with relevant tags
Content Organization¶
You: "I have too many unread bookmarks. Can you help me organize them?"
Claude: Uses search_bookmarks with unread_only=True to find unread items, then helps categorize and tag them
Bookmark Discovery¶
You: "What tutorials do I have bookmarked about React?"
Claude: Uses list_bookmarks_by_tag or search_bookmarks to find React tutorials and presents them in a useful format
Duplicate Prevention¶
You: "I want to bookmark this article about FastAPI best practices: https://example.com/fastapi-guide"
Claude: Uses check_url first, then either informs you it's already bookmarked or adds it with appropriate metadata
For more example prompts, see the Example Prompts page.
Troubleshooting¶
Common Issues¶
"No MCP servers found"¶
Cause: Configuration file not found or malformed JSON
Solution:
- Verify the configuration file path
- Check JSON syntax with a validator
- Ensure proper file permissions
"Server failed to start"¶
Cause: Package not installed or command not found
Solution:
- Verify installation:
pip show linkding-mcp-server - Check that
linkding-mcpis in your PATH - Try using full path or
python -m linkding_mcp_server
"Connection refused" errors¶
Cause: LinkDing instance not accessible
Solution:
- Verify LinkDing is running
- Check the
LINKDING_URLin configuration - Test API connectivity manually
"Unauthorized" errors¶
Cause: Invalid or expired API token
Solution:
- Generate a new API token in LinkDing
- Update the
LINKDING_API_TOKENin configuration - Restart Claude
Debug Steps¶
1. Test Server Manually¶
Or with environment variables:
2. Check Configuration Syntax¶
3. Test API Connectivity¶
Log Analysis¶
Enable debug mode and check logs:
Claude Desktop (macOS):
Claude Desktop (Windows):
Best Practices¶
Security¶
- Never commit API tokens to version control
- Use environment-specific tokens for different setups
- Rotate tokens regularly for security
- Start with read-only mode until you're comfortable
Performance¶
- Use reasonable limits when searching (default 100 is usually fine)
- Be specific in searches to reduce response size
- Use pagination for large result sets
Organization¶
- Establish consistent tagging conventions before heavy usage
- Use descriptive bookmark titles for better search results
- Regular maintenance of tags and archived items
- Backup your LinkDing data regularly
Next Steps¶
- Example Prompts - More ways to use with Claude
- Other MCP Clients - Use with other MCP-compatible applications
- Tools Reference - Detailed tool documentation