Agentic Coding · Workshop · Prompt methods & quality

An MCP Server for Computer Algebra: A Workshop on Exact Maths in AI Assistants

Stop AI assistants from doing maths in their heads: your own MCP server gives them exact tools for simplifying, solving and checking, safely isolated and backed by tests.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Workshop
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–10 participants
Level
Advanced
Language
German or English

Tools: Claude Code · Python · SymPy · MCP Python SDK · pytest · Claude Desktop

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

  1. An AI tutor checks a learner's rearranged equation with the equivalence tool instead of judging it itself, and only then gives feedback.
  2. 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.
  3. 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.

Request dates

What the MCP workshop for computer algebra covers

  1. MCP at a glanceClient, server, tools and transports, and when your own server makes more sense than a code interpreter.
  2. A first server with Claude CodeProject scaffold with the official Python SDK, a first tool and a trial run in the client.
  3. Computer algebra as a toolSimplify, solve, differentiate, integrate and check equivalence, with clear parameters and structured results.
  4. Security and robustnessControlled parsing instead of code execution, time limits, size limits, readable error messages and logging.
  5. Tests and qualitypytest for tools and edge cases, comparison with known answers and rules for the coding agent in the repository.
  6. 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

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the MCP workshop for computer algebra

Why not just use the assistant's code interpreter?

A code interpreter is flexible but hard to control and not available in every product. Your own MCP server offers precisely defined tools, checkable results and clear limits. For learning applications and editorial workflows that predictability often matters more than maximum flexibility.

Is SymPy suitable for every task?

SymPy covers school maths and many university topics, but it reaches its limits with very large expressions or special integrals. We show how the server detects such cases and reports them honestly instead of returning a wrong answer. Other computer algebra systems can be connected in the same way.

How safe is it to pass model output to a CAS?

Only as safe as the input handling. We parse expressions in a controlled way, never execute arbitrary code and limit run time and memory. For production use we also discuss isolation, logging and the permissions the server runs with.

Is the workshop held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.