Blues Notehub MCP Server (Python)
MCP Server Implementation of the Blues Notehub API
blues
README
Blues Notehub MCP Server (Python)
This is a Model Context Protocol (MCP) server implementation that interacts with the Blues Notehub API using the official notehub_py SDK. It allows large language models to interface with your Blues Notehub projects, devices, and data.
What is MCP?
Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. It standardizes how LLMs interact with external tools and services.
Prerequisites
- Python 3.8 or higher
- A Blues Notehub account (https://notehub.io)
- Your Notehub account username (email) and password
Installation
Option 1: Using pip (recommended)
- Clone or download this repository.
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate - Install the dependencies:
pip install -r requirements.txt
Option 2: Using uv (faster alternative)
- Install uv following the instructions at https://github.com/astral-sh/uv
- Create the environment and install dependencies:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -r requirements.txt
Running the Server
Start the server with:
python notehub.py
The MCP server will run using stdio as the transport layer, which is the standard transport for most MCP clients.
Authentication Method
This server uses X-Session-Token authentication with the Notehub API. You will need to provide your Notehub username (email) and password when using the tools. The server will automatically:
- Obtain a session token using the
/auth/loginendpoint - Cache the token for up to 29 minutes (tokens expire after 30 minutes)
- Automatically handle token refreshing when needed
Connecting to an MCP Client
Claude for Desktop (macOS/Windows)
- Install Claude for Desktop
- Update your Claude Desktop configuration file:
For macOS:
mkdir -p ~/Library/Application\ Support/Claude/
Edit or create ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"notehub": {
"command": "python",
"args": [
"--directory",
"/path/to/your/mcp-server",
"run",
"notehub.py"
],
"availableTo": ["claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240307", "claude-3-haiku-20240307"]
}
}
}
For Windows, the config file is located at:
%APPDATA%\Claude\claude_desktop_config.json
- Restart Claude for Desktop
Custom MCP Client
If you're building a custom MCP client, you'll need to:
- Start this server as a child process
- Communicate with it using stdin/stdout following the MCP protocol
- Configure your client to discover the tools this server exposes
Available Tools
This MCP server exposes the following tools:
get-projects- Get all accessible Notehub projectsget-project-devices- Get all devices for a specific project (with optional filtering)get-project-events- Get all events for a specific project (with optional filtering)send-note- Send a note to a specific device
Usage Examples
When using with Claude for Desktop, you can ask questions like:
- "Can you show me all my Notehub projects? My username is example@email.com and my password is mypassword123"
- "Fetch all devices from my project app:12345 using my Notehub username (example@email.com) and password"
- "Get the last 10 events from device dev:12345 in project app:12345"
- "Send a note to device dev:12345 in project app:12345 with the following payload: {"message": "Hello from MCP"}"
Security Considerations
- This server requires your Notehub username and password to function.
- Never share your configuration file containing paths or credentials.
- The MCP protocol runs locally, so your credentials are not sent to remote servers.
- The server implements token caching for better performance while maintaining security.
- If your Notehub account was created using "Sign in with GitHub", you'll need to set a password in the Account settings panel in Notehub.io first.
Troubleshooting
If you encounter issues:
-
Check the logs for any error messages:
- macOS:
~/Library/Logs/Claude/mcp-server-notehub.log - Windows:
%APPDATA%\Claude\Logs\mcp-server-notehub.log
- macOS:
-
Verify your Notehub credentials are correct.
-
If you signed up with GitHub, make sure you've set a password in your Notehub account settings.
-
Make sure the server is running with the correct Python version.
-
Ensure both
mcpandnotehub_pypackages are properly installed.
Extending the Server
To add more capabilities to this server:
- Extend the functions with additional Notehub API features
- Register new tools with
@mcp.tool()decorator - Add more filtering options to existing tools
- Implement additional error handling and reporting
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor
Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.
Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.