linklibrary-mcp
Click on "Deploy 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., "@linklibrary-mcp show me my most recent bookmarks"
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.
@msmygit/linklibrary-mcp
A high-performance, production-ready Model Context Protocol (MCP) server that provides AI assistants with programmatic access to LinkLibrary.ai bookmark management capabilities.
๐ Features
โจ Core Features
๐ Secure Authentication - JWT-based authentication with automatic token refresh
๐ Bookmark Management - Create, retrieve, and organize bookmarks with rich metadata
๐ Collections & Tags - Manage bookmark organization with collections and tags
๐ Advanced Search - Powerful search with multiple filters and operators
๐ Analytics - Get insights about your bookmark usage and patterns
๐ค AI Integration - Works seamlessly with Claude Desktop, VSCode, and other MCP clients
๐๏ธ Architecture Features
โก High Performance - In-memory caching with LRU eviction and TTL
๐ก๏ธ Rate Limiting - Configurable rate limiting with sliding window
๐ Metrics Driven - Comprehensive performance monitoring and logging
๐ Retry Logic - Automatic retry with exponential backoff
๐ Error Handling - Robust error handling with proper error types
๐งช Test Coverage - Comprehensive test suite with mocking
Related MCP server: bookmark-mcp
๐ ๏ธ Installation
For End Users
The package is published on npm and can be used directly with MCP clients:
{
"mcpServers": {
"linklibrary-mcp": {
"command": "npx",
"args": ["-y", "@msmygit/linklibrary-mcp@latest"],
"env": {
"LL_USERNAME": "your_email@example.com",
"LL_PASSWORD": "your_password"
}
}
}
}For Developers
npm install @msmygit/linklibrary-mcp๐ง Configuration
Environment Variables
Variable | Description | Default | Required |
| LinkLibrary.ai email address | - | Yes* |
| LinkLibrary.ai password | - | Yes* |
| LinkLibrary.ai API token | - | Yes* |
| API base URL |
| No |
| API request timeout |
| No |
| Maximum retry attempts |
| No |
| Cache TTL in seconds |
| No |
| Maximum cache entries |
| No |
| Rate limit requests per window |
| No |
| Rate limit window in ms |
| No |
| Logging level |
| No |
| Enable performance metrics |
| No |
*Either LL_USERNAME/LL_PASSWORD or LL_TOKEN is required.
MCP Client Configuration
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"linklibrary-mcp": {
"command": "npx",
"args": ["-y", "@msmygit/linklibrary-mcp@latest"],
"env": {
"LL_USERNAME": "your_email@example.com",
"LL_PASSWORD": "your_password",
"ENABLE_METRICS": "true"
}
}
}
}VSCode
Add to your VSCode settings:
{
"mcp.servers": {
"linklibrary-mcp": {
"command": "npx",
"args": ["-y", "@msmygit/linklibrary-mcp@latest"],
"env": {
"LL_USERNAME": "your_email@example.com",
"LL_PASSWORD": "your_password"
}
}
}
}๐ ๏ธ Available Tools
Authentication
authenticate- Authenticate with LinkLibrary credentials
Bookmark Management
get_links- Retrieve bookmarks with filtering and paginationcreate_link- Create new bookmarks with metadata
Organization
get_collections- Retrieve user collectionsget_tags- Retrieve user tags
Search & Analytics
search_advanced- Advanced search with multiple filtersget_user_stats- Get user statistics and insights
๐ก Usage Examples
Once connected to your MCP client, you can ask:
"Show me my recent bookmarks"
"Create a bookmark for this article about AI"
"Search for machine learning resources in my Development collection"
"Show me my bookmark statistics for this month"
"What are my most used tags?"
๐๏ธ Architecture
Core Components
linklibrary-mcp/
โโโ src/
โ โโโ types.ts # TypeScript type definitions
โ โโโ config.ts # Configuration management
โ โโโ server.ts # Main MCP server implementation
โ โโโ services/
โ โ โโโ api-client.ts # HTTP client with retry logic
โ โ โโโ auth-service.ts # Authentication management
โ โโโ utils/
โ โโโ logger.ts # Structured logging with metrics
โ โโโ cache.ts # In-memory LRU cache
โ โโโ rate-limiter.ts # Rate limiting implementation
โโโ scripts/
โ โโโ build.js # Build script
โโโ tests/
โ โโโ server.test.ts # Comprehensive test suite
โโโ package.json # npm package configurationPerformance Features
๐ Caching
In-memory LRU cache with configurable TTL
Automatic cache invalidation on data changes
Cache hit rate monitoring and statistics
โก Rate Limiting
Sliding window rate limiting for API protection
Configurable limits per operation type
Rate limit monitoring and reporting
๐ Metrics & Monitoring
Performance metrics collection and reporting
Request/response timing with percentiles
Error rate tracking and alerting
Cache performance monitoring
๐ Retry Logic
Exponential backoff for transient failures
Configurable retry attempts and delays
Smart retry conditions (5xx errors, timeouts)
๐งช Development
Prerequisites
Node.js 18+
npm or yarn
Setup
git clone <repository-url>
cd linklibrary-mcp
npm installDevelopment Commands
# Build the package
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm test -- --coverage
# Lint code
npm run lint
# Format code
npm run formatTesting
The project includes comprehensive tests:
Unit tests for all services and utilities
Integration tests for API interactions
Mock testing for external dependencies
Performance tests for caching and rate limiting
# Run all tests
npm test
# Run specific test suites
npm test -- --testNamePattern="Authentication"
npm test -- --testNamePattern="Cache"Building for Production
# Build the package
npm run build
# Test the built package
npm start
# Publish to npm
npm publish๐ Performance
Benchmarks
Response Time: < 100ms for cached requests
Throughput: 1000+ requests per minute
Memory Usage: < 50MB for typical usage
Cache Hit Rate: > 80% for read operations
Monitoring
Enable metrics collection by setting ENABLE_METRICS=true:
export ENABLE_METRICS=true
npx @msmygit/linklibrary-mcpMetrics include:
Request count and response times
Cache hit/miss rates
Rate limit usage
Error rates and types
๐ Security
Security Features
No local storage - credentials not stored locally
Environment variables - secure credential management
API authentication - uses LinkLibrary.ai's secure API
Rate limiting - protection against abuse
Input validation - comprehensive parameter validation
Error sanitization - no sensitive data in error messages
Best Practices
Use environment variables for credentials
Enable metrics only in development
Monitor rate limit usage
Regularly update dependencies
Use HTTPS for all API communications
๐ Troubleshooting
Common Issues
Authentication Errors
# Check environment variables
echo $LL_USERNAME
echo $LL_PASSWORD
# Verify API connectivity
curl -I https://linklibrary.ai/api/healthPerformance Issues
# Check cache statistics
# Enable debug logging
export LOG_LEVEL=debug
# Monitor rate limits
# Check rate limit configurationConnection Issues
# Test API connectivity
curl https://linklibrary.ai/api/health
# Check network configuration
ping linklibrary.aiDebug Mode
Enable debug logging for troubleshooting:
export LOG_LEVEL=debug
export ENABLE_METRICS=true
npx @msmygit/linklibrary-mcp๐ License
MIT License - see LICENSE file for details.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Guidelines
Follow TypeScript best practices
Add tests for new features
Update documentation as needed
Follow the existing code style
Ensure all tests pass before submitting
๐ Support
Documentation: LinkLibrary.ai
Issues: GitHub Issues
Email: linklibrary.ai@gmail.com
๐ Links
LinkLibrary.ai - Main service
MCP Documentation - Protocol specification
npm Package - Package page
GitHub Repository - Source code
Built with โค๏ธ for the AI community
Available Tools
7 toolsauthenticateC
Authenticate with LinkLibrary credentials
Inputs: password (required), username (required).
create_linkC
Create a new bookmark with optional metadata
Inputs: url (required), title (required), notes, summary, +3 more.
get_collectionsC
Retrieve user collections
Inputs: include_default.
get_linksC
Get links with optional filtering and pagination
Inputs: skip, limit, search, sort_by, +4 more.
get_tagsC
Retrieve user tags
Inputs: include_counts.
get_user_statsC
Get user statistics and insights (currently not available)
Inputs: period.
search_advancedC
Perform advanced search with multiple filters
Inputs: query (required), limit, tag_ids, operator, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Most tools target a distinct resource (collections, tags, auth), but get_links and search_advanced overlap substantially โ both retrieve links with filters, and the descriptions don't clearly delineate when to use one over the other. get_user_stats is also explicitly non-functional, which adds noise to selection.
The dominant pattern is verb_noun (get_links, create_link, get_collections, get_tags, get_user_stats), which is predictable. Minor deviations are 'authenticate' (bare verb) and 'search_advanced' (verb_adjective rather than verb_noun), but overall still readable and consistent.
Seven tools is a well-scoped size for a bookmark manager covering auth, links, collections, tags, and search. However, one of the seven (get_user_stats) is marked unavailable, effectively leaving six useful tools and one dead entry.
The surface is read-plus-create only: create_link exists but there is no update_link or delete_link, and collections/tags can only be listed, not created or modified. Combined with a non-functional get_user_stats, agents cannot complete standard bookmark lifecycle workflows.
Maintenance
Related MCP Connectors
Save, search, read, tag, and organize your bookmarks from AI assistants with OAuth sign-in.
Official Bookmax MCP server: search and save bookmarks, read notes and docs from AI assistants.
AI bookmark manager for X, Instagram and TikTok saves, searchable by your agent.
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to save and search bookmarks using OpenAI's RAG capabilities for intelligent bookmark management and retrieval.MIT
- AlicenseAqualityFmaintenanceA bookmark management MCP server that enables saving, searching, and managing bookmarks with tags and read/unread status, providing tools, resources, and prompts for integration.4MIT
- AlicenseBqualityDmaintenanceEnables AI agents to manage bookmarks (webpages, articles, videos) on behalf of users, including registration, categorization, tagging, and sharing.20MIT
- FlicenseNot gradedqualityDmaintenanceProvides authenticated bookmark management tools via MCP, including adding, deleting, listing, and searching bookmarks.-