Skip to main content
Glama

Micro.blog Books MCP Server

by 7robots
install.py1.8 kB
#!/usr/bin/env python3 """Install script for the Micro.blog Books MCP Server dependencies.""" import subprocess import sys from pathlib import Path def install_dependencies(): """Install required dependencies using uv.""" print("Installing dependencies with uv...") try: subprocess.check_call(["uv", "sync"]) print("✓ Dependencies installed successfully") except subprocess.CalledProcessError as e: print(f"✗ Failed to install dependencies: {e}") print(" Make sure you have uv installed: https://docs.astral.sh/uv/getting-started/installation/") return False return True def test_server(): """Test that the server can be imported and created.""" try: result = subprocess.run([ "uv", "run", "python", "-c", "from micro_mcp_server.server import create_server; create_server('test_token')" ], capture_output=True, text=True, check=True) print("✓ Server can be created successfully") return True except subprocess.CalledProcessError as e: print(f"✗ Server test failed: {e}") print(" Make sure you've installed the dependencies with uv sync") return False if __name__ == "__main__": print("Setting up Micro.blog Books MCP Server...") if install_dependencies() and test_server(): print("\n✓ Setup complete! The server is ready to use.") print("\nNext steps:") print("1. Set your bearer token: export MICRO_BLOG_BEARER_TOKEN='your_token'") print("2. Generate Claude Desktop configuration: python get_config.py") print("3. Add the configuration to Claude Desktop and restart") else: print("\n✗ Setup failed. Please check the errors above.") sys.exit(1)

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