Skip to main content
Glama

Micro.blog Books MCP Server

by 7robots
README.md7.59 kB
# Micro.blog Books Desktop Extension (Python DXT) A Python-based Desktop Extension (DXT) version of the Micro.blog Books MCP server that provides seamless integration with Claude Desktop for managing your Micro.blog book collections, bookshelves, and reading goals. ## Features ### 📚 Bookshelf Management - **get_bookshelves**: Get all your bookshelves - **get_bookshelf_books**: Get books in a specific bookshelf - **add_bookshelf**: Create a new bookshelf - **rename_bookshelf**: Rename an existing bookshelf ### 📖 Book Management - **add_book**: Add a new book to a bookshelf - **move_book**: Move a book between bookshelves - **remove_book**: Remove a book from a bookshelf - **change_book_cover**: Update a book's cover image ### 🎯 Reading Goals - **get_reading_goals**: Get your reading goals - **get_goal_progress**: Get progress toward a specific reading goal - **update_reading_goal**: Update a reading goal's target or progress ## Installation ### Prerequisites - **Claude Desktop** (version 0.7.0 or higher) - **Python** (version 3.10 or higher) - **required for running the extension** - **Micro.blog account** with API access ⚠️ **Important**: This extension requires Python 3.10+. Many systems come with older Python versions (3.9.x or earlier). Please verify compatibility before installing. ### Quick Installation 1. **Check compatibility first**: ```bash python check_compatibility.py ``` This will verify your Python version and show upgrade instructions if needed. 2. **Download the extension package** (`.dxt` file) 3. **Open Claude Desktop** 4. **Install the extension**: - Go to Settings → Extensions - Click "Install Extension" - Select the downloaded `.dxt` file 5. **Configure your bearer token**: - Enter your Micro.blog bearer token when prompted - You can get this from your Micro.blog account settings ### If You Have Python < 3.10 **macOS:** ```bash # Option 1: Homebrew (recommended) brew install python@3.10 # Option 2: Download from python.org # Visit https://python.org and download Python 3.10+ ``` **Windows:** ```bash # Option 1: Download from python.org (recommended) # Visit https://python.org and download Python 3.10+ # Option 2: Microsoft Store # Search for "Python 3.10" in Microsoft Store ``` **Linux:** ```bash # Ubuntu/Debian sudo apt update && sudo apt install python3.10 # CentOS/RHEL sudo yum install python3.10 # Fedora sudo dnf install python3.10 ``` ### Building from Source If you want to build from source: 1. **Clone the repository**: ```bash git clone https://github.com/7robots/micro-mcp-server.git cd micro-mcp-server/python-dxt-extension ``` 2. **Build the extension**: ```bash python build.py ``` 3. **Install in Claude Desktop** as described above ## Configuration ### Bearer Token Setup You'll need a bearer token from Micro.blog to authenticate API requests: 1. **Log into your Micro.blog account** 2. **Go to Account Settings** 3. **Generate or copy your API bearer token** 4. **Enter this token during extension installation** The token is stored securely in your local configuration and is only used to make API requests to Micro.blog on your behalf. ## Usage Once installed, you can ask Claude to help manage your books. Here are some example commands: ### Getting Information - "Show me all my bookshelves" - "What books are in my 'Currently Reading' bookshelf?" - "What are my reading goals for this year?" - "How much progress have I made on goal 123?" ### Managing Bookshelves - "Create a new bookshelf called 'Science Fiction'" - "Rename bookshelf 5 to 'Favorites'" ### Managing Books - "Add 'Project Hail Mary' by Andy Weir to my 'Currently Reading' bookshelf" - "Move book 79 to bookshelf 23" - "Remove book 45 from bookshelf 12" - "Change the cover of book 67 in bookshelf 8 to this URL: https://example.com/cover.jpg" ### Managing Reading Goals - "Update my reading goal 1 to target 25 books" - "Set my progress on goal 2 to 15 books read" ## Python vs Node.js Versions This repository provides two DXT implementations: - **Node.js Version** (`dxt-extension/`): Uses `@modelcontextprotocol/sdk` - **Python Version** (`python-dxt-extension/`): Uses `fastmcp` - this version Both provide identical functionality. Choose based on your preference or specific requirements. ## Security & Privacy - **Local Operation**: This extension runs entirely on your local machine - **Secure Token Storage**: Your bearer token is stored securely in Claude Desktop's configuration - **API-Only Access**: The extension only makes API calls to Micro.blog's official endpoints - **No Data Collection**: No usage data is collected or transmitted to third parties - **Open Source**: The code is open source and auditable ## Troubleshooting ### Common Issues 1. **"Bearer token is required" error**: - Make sure you've entered your Micro.blog bearer token during installation - Verify the token is valid by checking your Micro.blog account settings 2. **"Network error" messages**: - Check your internet connection - Verify that micro.blog is accessible from your network - Check if you're behind a corporate firewall that might block the requests 3. **"HTTP 401" or authentication errors**: - Your bearer token may have expired or been revoked - Generate a new token in your Micro.blog account settings - Reinstall the extension with the new token 4. **Extension not appearing in Claude Desktop**: - Ensure you're using Claude Desktop version 0.7.0 or higher - Check that the extension package was installed correctly 5. **Python-related errors**: - The extension bundles its own Python dependencies, so system Python issues shouldn't affect it - If building from source, ensure Python 3.10+ is installed ### Getting Help - **GitHub Issues**: Report bugs or request features at [GitHub Issues](https://github.com/7robots/micro-mcp-server/issues) - **Documentation**: Check the main project [README](../README.md) for additional information - **Micro.blog API**: For API-specific issues, refer to the [Micro.blog Books API documentation](https://help.micro.blog/t/books-api/280) ## Development ### Project Structure ``` python-dxt-extension/ ├── manifest.json # Extension metadata and configuration ├── requirements.txt # Python dependencies ├── build.py # Build script ├── server/ │ └── main.py # MCP server implementation └── README.md # This file ``` ### Building from Source 1. **Install dependencies** (for development): ```bash pip install -r requirements.txt ``` 2. **Test the server** (optional): ```bash export MICRO_BLOG_BEARER_TOKEN="your_token_here" python server/main.py ``` 3. **Package the extension**: ```bash python build.py ``` ### Architecture The Python version uses: - **FastMCP**: Simple MCP server framework - **httpx**: Modern async HTTP client - **Virtual Environment Bundling**: All dependencies included in the `.dxt` package ## License This project is licensed under the MIT License - see the [LICENSE](../LICENSE) file for details. ## Related Projects - **Node.js Version**: Alternative implementation using Node.js in the `dxt-extension/` directory - **Main MCP Server**: The original standalone Python MCP server in the parent directory - **Modal Deployment**: Modal.com deployment version in the `modal/` directory - **Desktop Extensions**: Official DXT specifications at [anthropics/dxt](https://github.com/anthropics/dxt)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/7robots/micro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server