Textbook Cover Editor MCP Server
A Model Context Protocol (MCP) server built with FastMCP that allows AI assistants (like Claude) to programmatically interact with a live Textbook Cover Editor canvas.
This server acts as a bridge between your AI assistant and a local Node.js backend (http://127.0.0.1:3000), enabling the AI to retrieve canvas states, create new design elements, update existing ones, and delete them in real-time.
Features
- Read Canvas State: Fetches the current live state of the document.
- Add Elements: Create rectangles, ellipses, triangles, stars, arrows, lines, rich text, and markdown-formatted tables.
- Update Elements: Modify coordinates, dimensions, colors, text content, and layer names dynamically.
- Delete Elements: Remove items from the canvas via their unique IDs.
- Rich Text Support: Automatically translates standard text into character-by-character rich text payload arrays.
Prerequisites
- Python 3.8 or higher.
- A running Node.js backend server at
http://127.0.0.1:3000with the/api/document/...endpoints configured. - An AI client that supports the MCP standard (e.g., Claude Desktop).
Installation
Install the package directly from PyPI:
pip install textbook-cover-mcp
{
"mcpServers": {
"textbook-cover-editor": {
"command": "python",
"args": ["-m", "textbook-cover-mcp"],
"env": {
"TEXTBOOK_API_KEY": "your_api_key_here",
"ACTIVE_PROJECT_ID": "your_project_id_here"
}
}
}
}
Metadata
Release files for textbook-cover-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textbook_cover_mcp-0.1.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textbook_cover_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / textbook_cover_mcp-0.1.2.tar.gz
| Download URL | textbook_cover_mcp-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c03d5b1f48bc9cfc965587f8afb3fda43b265f39279a5668732da8b17cb7c59
|
|
BLAKE2b-256 checksum How to use checksums |
4c386cae5d8c9bbe198c8974445418f05c274b13d67e8798757c52fcf1787e00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / textbook_cover_mcp-0.1.2-py3-none-any.whl
| Download URL | textbook_cover_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e87914202664d667188d79f80877d28b44f230e5bf75f1aa6acddbdd1ae8d3ce
|
|
BLAKE2b-256 checksum How to use checksums |
1002ab1292eefb6a8f3f5a101e92c78b0ee9cb1234aa32ddce0b536bf190abaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|