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"
}
}
}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textbook_cover_mcp-0.1.1.tar.gz.
File metadata
- Download URL: textbook_cover_mcp-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8aafdda6a02d05f53ecc99bf54edb57631853b599bcced9ee03d4427741e4f8
|
|
| MD5 |
0cde10453a5eb96821296a2472df71ac
|
|
| BLAKE2b-256 |
b868094f8e7871d0c9135ccc9f2071bbb671f45f998509c30ad67d45e30faf1a
|
File details
Details for the file textbook_cover_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: textbook_cover_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e51eff6dce1761eb9776fb5cacd2540da998d3fcda8c88556bb5a2fbc149ac75
|
|
| MD5 |
cb8d57f95b6e39d44da8e52f7981f94e
|
|
| BLAKE2b-256 |
01e198687b520789d435b24410f98445cd4e8ab06b115d98f65c5403e768cde7
|