YouMind MCP Server
A Model Context Protocol (MCP) server built with FastMCP that provides access to YouMind content.
Features
- Retrieve craft content by craft ID
- Authenticated API access to YouMind
- Simple FastMCP-based implementation
Prerequisites
- Python 3.8 or higher
- A YouMind account with valid authentication token
Installation
From PyPI (Recommended)
pip install youmind-mcp
From Source
- Clone this repository:
git clone <repository-url>
cd youmind-mcp
- Install the package:
pip install .
Or install in development mode:
pip install -e .
Configuration
Set up environment variables. You can either:
- Create a
.envfile:
cp .env.example .env
- Edit
.envand add your YouMind authentication token:
YOUMIND_AUTH_TOKEN=sb-flzdupptcpbcowdaetfq-auth-token=your-actual-token-here
Or set the environment variable directly:
export YOUMIND_AUTH_TOKEN=sb-flzdupptcpbcowdaetfq-auth-token=your-actual-token-here
To get your authentication token:
- Log in to YouMind in your browser
- Open browser developer tools (F12)
- Go to Application/Storage > Cookies > https://youmind.com
- Copy the value of
sb-flzdupptcpbcowdaetfq-auth-token - Set
YOUMIND_AUTH_TOKEN=sb-flzdupptcpbcowdaetfq-auth-token=<copied-value>
Usage
Running the Server
After installation, you can run the MCP server using:
youmind-mcp
Or as a Python module:
python -m youmind_mcp
The server will start and communicate via stdio (standard input/output), which is the standard transport for MCP servers.
Using with MCP Clients
Configure your MCP client (e.g., Claude Desktop, Cursor) to use this server:
After pip installation:
{
"mcpServers": {
"youmind": {
"command": "youmind-mcp",
"env": {
"YOUMIND_AUTH_TOKEN": "sb-flzdupptcpbcowdaetfq-auth-token=your-token"
}
}
}
}
Or using Python module:
{
"mcpServers": {
"youmind": {
"command": "python",
"args": ["-m", "youmind_mcp"],
"env": {
"YOUMIND_AUTH_TOKEN": "sb-flzdupptcpbcowdaetfq-auth-token=your-token"
}
}
}
}
Available Tools
get_craft_content
Retrieves the plain text content of a craft by its ID.
Parameters:
craft_id(string, required): The ID of the craft to retrieve
Returns:
- The plain text content of the craft, or an error message if the craft is not found or accessible
Example:
# Called via MCP protocol
get_craft_content(craft_id="019bc6bc-e1cc-79a2-a6fd-448b711a8895")
Project Structure
youmind-mcp/
├── youmind_mcp/ # Package directory
│ ├── __init__.py # Package initialization
│ ├── __main__.py # Module entry point
│ ├── server.py # Main FastMCP server implementation
│ ├── api_client.py # YouMind API client
│ └── exceptions.py # Custom exceptions
├── pyproject.toml # Package configuration
├── MANIFEST.in # Distribution manifest
├── requirements.txt # Python dependencies (for reference)
├── README.md # This file
├── LICENSE # MIT License
└── .env.example # Environment variable template
Error Handling
The server handles various error scenarios:
- 404 Not Found: Craft ID doesn't exist
- 401 Unauthorized: Authentication token is invalid or expired
- 403 Forbidden: No permission to access the craft
- Network Errors: Connection issues with YouMind API
- Invalid Input: Empty or malformed craft IDs
All errors are returned as user-friendly messages.
Development
Setup
- Clone the repository:
git clone <repository-url>
cd youmind-mcp
- Install in development mode with optional dependencies:
pip install -e ".[dev]"
Testing
You can test the API client directly:
from youmind_mcp.api_client import YouMindAPIClient
client = YouMindAPIClient()
response = client.get_craft("craft-id-here")
print(response)
Building for Distribution
To build the package:
python -m build
This will create distribution files in the dist/ directory.
Publishing to PyPI
- Build the package:
python -m build
- Upload to PyPI (requires credentials):
python -m twine upload dist/*
Support
For issues or questions, please open an issue in the repository.
Metadata
Release files for youmind-mcp 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| youmind_mcp-0.0.1.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youmind_mcp-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / youmind_mcp-0.0.1.tar.gz
| Download URL | youmind_mcp-0.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3b33b38386f33da8f5fe687db2e11694ecf6b8df9d240bd7db01e6c1944ac6a
|
|
BLAKE2b-256 checksum How to use checksums |
acac69affadf30283ed153f5a0e98d3a90d49d0aaca8e32381318fad94c4ead3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / youmind_mcp-0.0.1-py3-none-any.whl
| Download URL | youmind_mcp-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
647fd698217e871bd4ea9aa0b748d89887794c340830f693750a306035f4b132
|
|
BLAKE2b-256 checksum How to use checksums |
02699949daf8588a0d6c0043eea1d5701e145f010a111c11135961381f61d2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for youmind-mcp 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.