MCP based Math Drawing Client
@movva09
关于 MCP based Math Drawing Client
Agentic MCP Client Server that solves a math task and draws output in rectangle in a drawing app.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Agent-MCP-Math-Draw": {
"command": "python",
"args": [
"example2-3_server.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP based Math Drawing Client?
The MCP based Math Drawing Client is a Python MCP server that combines mathematical computations with visual drawing capabilities. It integrates with the Gemini AI model to process mathematical queries and generate responses that are automatically drawn on a canvas. It is intended for developers building MCP-based applications that require both calculation and visual output.
How to use MCP based Math Drawing Client?
Install the required packages (mcp, google-generativeai, python-dotenv), create a .env file with your Gemini API key, optionally edit config.json for canvas and port settings, and start the MCP server with python example2-3_server.py. Then run the client script talk2mcp_math_draw_client.py to send queries.
Key features of MCP based Math Drawing Client
- Integration with Gemini AI for mathematical problem-solving
- Drawing capabilities for visual representation of results
- Supports basic and advanced mathematical operations (arithmetic, exponential, logarithmic, prime, factorial, Fibonacci)
- Drawing tools: rectangles, text placement, canvas clearing, color selection
- Iterative problem-solving with a maximum of 9 iterations
- Error handling and 10-second timeout for LLM operations
- Session management and tool execution with parameter validation
Use cases of MCP based Math Drawing Client
- Visualizing calculated results (e.g., sums of ASCII values) inside a rectangle at a given position
- Performing multi-step operations such as exponential values of prime numbers and displaying the sum
- Drawing formatted text results after mathematical transformations (e.g., square root of a sum)
FAQ from MCP based Math Drawing Client
What dependencies are required?
Python 3.x and the packages mcp, google-generativeai, and python-dotenv.
How do I configure the Gemini API key?
Create a .env file in the project root and add GEMINI_API_KEY=your_api_key_here.
What mathematical operations are supported?
Basic arithmetic, exponential, logarithmic, ASCII value calculations, string manipulation, array operations, prime number calculations, factorial, and Fibonacci sequence generation.
What is the default canvas size?
The default canvas size is 1920×1080 pixels, configurable in config.json under canvas.width and canvas.height.
Is there a limit on iterations?
Yes, the system uses an iterative approach with a maximum of 9 iterations for complex problems.
AI 与智能体 分类下的更多 MCP 服务器
1MCP - One MCP Server for All
1mcp-appA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
MCP Manager for Claude Desktop
zueaisimple web ui to manage mcp (model context protocol) servers in the claude app
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
评论