MCP Grareco
This is an MCP server for generating graphic recordings. It leverages the MCP protocol to transform the content of any URL or arbitrary string into a grareco (graphic recording).
Components
Tools
echo
- A simple tool that echoes back the input message.
- Input:
message
(string): The message to echo back.
- Returns: Text containing the echoed message.
printEnv
- Displays all environment variables.
- Useful for debugging MCP server settings.
- Input: None
- Returns: A JSON string of all environment variables.
webToGrareco
- Fetches a website from a URL and converts it into a graphic recording-formatted HTML.
- Input:
url
(string): The URL of the website to convert.promptType
(enum: "standard" | "elementary" | "timeline", default: "standard"): The prompt type to use (standard, elementary, timeline).
- Returns: The save path of the generated HTML file.
- Sends progress notifications during processing.
textToGrareco
- Converts text into a graphic recording-formatted HTML.
- Input:
text
(string): The text to convert.promptType
(enum: "standard" | "elementary" | "timeline", default: "standard"): The prompt type to use (standard, elementary, timeline).
- Returns: The save path of the generated HTML file.
- Sends progress notifications during processing.
Logging
The server sends random-leveled log messages every 15 seconds, e.g.:
{
"method": "notifications/message",
"params": {
\\\t"level": "info",
\\\t"data": "Info-level message"
}
}
使用方法
ローカルでの実行
# インストール
npm install
# ビルド
npm run build
# 実行(STDIOモード)
npm run start
# 実行(SSEモード)
npm run start:sse
Claude Desktopでの使用
Add the following to cline_mcp_settings.json
:
Example 1:
{
"mcpServers": {
"grareco": {
"command": "npx",
"args": [
"-y",
"mcp_grareco"
]
}
}
}
Example 2:
{
"mcpServers": {
"grareco": {
"url": "http://localhost:3000/sse",
"headers": {},
"timeout": 900
}
}
}