Language models write fluent solution steps but still slip on algebraic manipulation and equations. The fix is a tool that calculates exactly. The Model Context Protocol (MCP) is an open standard that lets assistants such as Claude call external tools. In the workshop you use Claude Code to build an MCP server for computer algebra based on SymPy, with tools for simplifying, solving, differentiating and checking equivalence, safe input handling, time limits and tests. You then connect the server to a client and write prompts that make the model recompute instead of guessing.
Who the MCP workshop for computer algebra is for
Developers in edtech teams, at universities and at publishers, as well as technically confident lecturers, who want to give AI assistants or coding agents reliable maths. Experience with Python and the command line is assumed.
What you'll walk away with
- Understand how an MCP server is structured, with tools, parameters and descriptions, and build one yourself
- Expose SymPy functions for simplifying, solving, differentiating, integrating and checking equivalence as tools
- Parse input in a controlled way instead of executing arbitrary code, and limit run time and memory
- Test the server with pytest and phrase error messages so that the model responds to them sensibly
- Tune prompts and tool descriptions so that the assistant reliably hands calculations to the server
Typical scenarios
- An AI tutor checks a learner's rearranged equation with the equivalence tool instead of judging it itself, and only then gives feedback.
- An editorial team has answers to differentiation exercises recomputed through the server; mismatches between the answer key and computer algebra go onto a review list.
- A coding agent uses the server while generating exercise variants to confirm for each one that the answer is a whole number and unique.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the MCP workshop for computer algebra covers
- MCP at a glanceClient, server, tools and transports, and when your own server makes more sense than a code interpreter.
- A first server with Claude CodeProject scaffold with the official Python SDK, a first tool and a trial run in the client.
- Computer algebra as a toolSimplify, solve, differentiate, integrate and check equivalence, with clear parameters and structured results.
- Security and robustnessControlled parsing instead of code execution, time limits, size limits, readable error messages and logging.
- Tests and qualitypytest for tools and edge cases, comparison with known answers and rules for the coding agent in the repository.
- Prompts for tool useTool descriptions and system prompts that get the model to recompute, plus a small series of tests to confirm it.
Before the MCP workshop for computer algebra: prerequisites
- Confident basic Python and experience with the command line
- A laptop with Python, Git and access to Claude Code or another coding agent
- An MCP-capable client, such as Claude Desktop or Claude Code, for the hands-on test
Materials you keep
- A working MCP server with computer algebra tools, tests and documentation
- A checklist for safe tools that process input from language models
- Templates for tool descriptions and system prompts that hand off calculations