RINEARN
HOMEINFOSOFTTECHSERVCONTACT
RINEARN > English Top > News > 2025
[ Prev | Index | Next ]
2025/11/15
Japanese English

Exevalator v2.4 Released — MCP Support Added, Now Usable as an AI Calculation Tool

We've released Exevalator (an open-source expression-evaluation library) v2.4.0!

  • Exevalator — Official Site

We just shipped a major update to v2.3 the other day, which added Python support:

  • Nov 4, 2025: Exevalator v2.3 Released — Now Usable from Python

Building on that Python port, v2.4 adds support for the MCP protocol, enabling Exevalator to be used as a calculation tool for AI.

Below, we'll cover the details and show practical examples.

- Table of Contents -
  • What Is Exevalator?
  • What Is MCP (Model Context Protocol)?
  • With MCP Support, Exevalator Can Now Serve as a Calculation Tool for AI
  • Letfs Try It!

What Is Exevalator?

In its original role, Exevalator is a library you embed in your program to evaluate the value of expressions provided as strings. For example:

(1 + 2) * 3
sqrt( sin(1.2) / (cos(3.4) + 1) )

When expressions like these are supplied dynamically at runtime (e.g., via user input), handling them correctly can be trickier than it looks.

Exevalator provides this capability as a library across multiple programming languages so you can integrate it easily. It currently supports seven languages: Java, Rust, C++, C#, VB.NET, TypeScript, and Python, with more to come.

And in this release, beyond language bindings, we've added support for MCP, a protocol for connecting AI to external tools and data.

What Is MCP (Model Context Protocol)?

MCP is a relatively new protocol, so many readers may not have run into it yet.

First, a quick refresher: what's a protocol?

What a Protocol Is

A protocol is, roughly speaking, an agreed — upon framework for interaction — the rules and assumptions that let systems communicate and control one another.

Whenever two systems need to exchange information or issue commands, a few things have to be true:

  • There must be some sort of conversation rules, or meaningful interaction won't happen at all.
  • The parties need to share assumptions — who the other side is, what actions are available, and how state changes in response to those actions.
  • You also need contingencies: what if the peer disappears mid-conversation? What happens when a request fails or is invalid?

The collection of such agreements is the protocol. Systems interoperate — communicate, coordinate, and recover — by following it.

Classic examples include TCP (a transport protocol between sender and receiver on the web) and HTTP (an application protocol layered on top of TCP).

Right now, your PC or smartphone is receiving this page from RINEARN's web server according to those rules.

Thanks to shared protocols, your device can talk to web servers worldwide and render sites consistently.

MCP: A Protocol for AI Systems to Interact with External Tools and Information

Here's the key point.

AI has advanced rapidly in recent years, and AI systems are now beginning to use tools on their own and carry out tasks autonomously — the rise of so-called AI agents.

In such setups, an AI-agent system interacts with tools for AI (and other information providers):

That interaction needs to be reliable and efficient for AI. A shared protocol makes this far easier.

One strong candidate is MCP (Model Context Protocol), proposed in 2024 by the AI company Anthropic. It's a very fresh protocol, but momentum is building.

There are other approaches (e.g., OpenAI's function calling), but as of November 2025, MCP appears to have a strong head start. Many AI systems are adding MCP support — or announcing plans to — so it may well become a de facto standard, though that's not guaranteed.

With MCP Support, Exevalator Can Now Serve as a Calculation Tool for AI

Exevalator Now Supports MCP

After a bit of background, here's the point: starting with this release, Exevalator supports control via MCP.

As in the earlier diagram, this makes it possible to use Exevalator as a calculation tool for AI:

When Is This Useful?

You might ask:

These days, can't an AI just write a Python script and compute things?

That's true — if you're willing to let the AI execute arbitrary scripts, you don't need Exevalator at all.

So when does Exevalator help? Precisely when you do not want to grant an AI permission to run arbitrary code.

There are plenty of cases where unrestricted execution is undesirable or outright impossible. For example:

  • Environments containing confidential data that must not be accessed.
  • Systems where accidental modification could cause catastrophic damage.
  • Situations where the AI/LLM has lower reliability and occasionally gets confused or makes odd mistakes.
  • Workflows where third-party requests are routed to the AI.

Yet in those same situations, you might still want to allow:

"Just evaluate expressions and remember values (read/write variables)."

That's where Exevalator shines.

Because of its design, Exevalator lets you compute safely:

  • Anything beyond expression evaluation is impossible by construction.
  • Only pre-registered functions (implemented or wrapped by you) can be called from expressions.
  • You can declare and use variables accessible only within Exevalator — there is no effect on the outside world.

So even if someone tries to read secrets or damage the system, it simply can't be done through Exevalator.

Notes and Limitations

Please keep the following in mind:

  • All values are treated as double-precision floating point (i.e., float in Python, double in C-like languages).
  • Variables are also double-precision floats only.

Consequently, you cannot create values/instances of other types and pass them as arguments to specific functions. Exevalator is for numerical computation.

Let's Try It!

To wrap up, let's actually connect Exevalator to an AI agent and try it out.

Sample Environment and How to Install/Connect Exevalator

The examples below were run in the following environment:

  • OS: Ubuntu Linux 24.04 LTS
  • AI agent setup: Visual Studio Code + Cline
  • LLM & model used: OpenAI GPT-5 nano (*)
*: You'll need a paid API plan with OpenAI, but GPT-5 nano is quite inexpensive (about $0.05 per million input tokens and $0.4 per million output tokens).
It's great for "just verify my MCP wiring works" scenarios. Performance is modest, so for heavier tasks you may want a smarter (and costlier) model.

For installation and MCP connection in the setup above, please see the official README.

Try a Computation with Math Functions

First, let's have the agent evaluate an expression that uses some math functions:

The result matches the theoretical value.

Note that the MCP edition of Exevalator comes in two variants:

  • exevalator_mcp.py — no functions pre-registered
  • exevalator_mcp_math_preset.py — common math functions pre-registered

Here we're using the latter.

In either case, you can edit the source to add more functions, and of course you can implement your own custom functions.

Try a Small Procedural Computation with Variables

Next, let's declare/read/write variables and perform a small, stepwise calculation:

As shown, you can store values for later use.

Note: With the GPT-5 nano model, we often observed minor issues: the final answer was correct, but the intermediate steps were a bit confused, or it sometimes skipped assigning results to variables. For tasks at this level, GPT-5 mini or higher seems more suitable. In our tests, mini executed the steps reliably without "skipping."

As an aside, trying this felt like "natural-language programming" in spirit. It might be fun to build an educational language/runtime that leans in this direction — just a thought!

-

That's a wrap for this release. Personally, this update was exciting to build — the sci-fi future keeps getting closer!

We plan to expand language support further; tentatively, Go is on the radar for the next major update (v2.5), though this is not final yet.

We'll keep posting Exevalator updates here. Stay tuned!

We'd also like to acknowledge the book that kicked off our MCP journey; it's a highly practical resource:

  • Python de Hajimeru MCP Kaihatsu Nyumon / Kodansha, 2025

If you already write command-line tools or libraries in Python, a bit of hands-on practice may be all it takes to promote your tool into an AI-ready tool. It'll be exciting to see more tools and libraries become AI-enabled — let's ride the AI-era wave together!


Author of This Article

Fumihiro Matsui
[ Founder of RINEARN, Doctor of Science (Physics), Applied Info Tech Engineer ]
Develops VCSSL, RINEARN Graph 3D and more. Also writes guides and articles.
| About Me | Contact |

Translation Cooperator

ChatGPT AIs
[ GPT-3.5, 4, 5, 5.1 ]
We greatly appreciate the cooperation of ChatGPT AIs in translating this article.
» How we translated this article

Japanese English
[ Prev | Index | Next ]
RINEARN > English Top > News > 2025

Exevalator v2.4 Released — MCP Support Added, Now Usable as an AI Calculation Tool
2025-11-15 - We've released Exevalator v2.4, our expression-evaluation library. Starting with this version, it supports MCP, making it usable as a calculation tool for AI assistants.

Exevalator v2.3 Released — Now Usable from Python
2025-11-04 - We've released Exevalator v2.3. Starting with this version, you can now use it from Python! With growing demand around AI tool development in mind, we share the details here.

Exevalator Updated — Easy Japanese Localization for Error Messages
2025-10-31 - Exevalator 2.2.2 is out. You can now localize error messages to Japanese with a simple copy-and-paste, and we've included several bug fixes and minor parser adjustments.

Inside RINPn Online: Architecture Overview
2025-10-22 - An inside look at the architecture of the recently launched online version of the RINPn scientific calculator. It's open source, so you can freely modify and reuse it to build your own web calculator (maybe!).

Meet RINPn Online: Use the Scientific Calculator Anywhere, Instantly
2025-10-21 - RINPn, the free scientific calculator, now has an online version you can use instantly in your browser — on both PC and smartphones. Read the announcement for details.

The VCSSL Support AI is Here! — Requires a ChatGPT Plus Account for Practical Performance
2025-08-19 - A new AI assistant for the VCSSL programming language is here to answer your questions and help with coding. This article explains how to use it and showcases plenty of real Q&A and generated code examples.

English Documentation for Our Software and VCSSL Is Now Nearly Complete
2025-06-30 - We're happy to announce that the large-scale expansion of our English documentation with the support of AI — a project that began two years ago — has now reached its initial target milestone.

VCSSL 3.4.52 Released: Enhanced Integration with External Programs and More
2025-05-25 - This update introduces enhancements to the external program integration features (e.g., for running C-language executables). Several other improvements and fixes are also included. Details inside.

Released: Latest Version of VCSSL with Fixes for Behavioral Changes on Java 24
2025-04-22 - VCSSL 3.4.50 released with a fix for a subtle behavioral change in absolute path resolution on network drives, introduced in Java 24. Details inside.

Index of this category
RINEARN > English Top > News > 2025
[ Prev | Index | Next ]
  • Exevalator v2.4 Released — MCP Support Added, Now Usable as an AI Calculation Tool
  • Exevalator v2.3 Released — Now Usable from Python
  • Exevalator Updated — Easy Japanese Localization for Error Messages
  • Inside RINPn Online: Architecture Overview
  • Meet RINPn Online: Use the Scientific Calculator Anywhere, Instantly
  • The VCSSL Support AI is Here! — Requires a ChatGPT Plus Account for Practical Performance
  • English Documentation for Our Software and VCSSL Is Now Nearly Complete
  • VCSSL 3.4.52 Released: Enhanced Integration with External Programs and More
  • Released: Latest Version of VCSSL with Fixes for Behavioral Changes on Java 24
News

Exevalatorv2.4Released—MCPSupportAdded,NowUsableasanAICalculationTool
2025-11-15 - We'vereleasedExevalatorv2.4,ourexpression-evaluationlibrary.Startingwiththisversion,itsupportsMCP,makingitusableasacalculationtoolforAIassistants.

Exevalatorv2.3Released—NowUsablefromPython
2025-11-04 - We'vereleasedExevalatorv2.3.Startingwiththisversion,youcannowuseitfromPython!WithgrowingdemandaroundAItooldevelopmentinmind,wesharethedetailshere.

ExevalatorUpdated—EasyJapaneseLocalizationforErrorMessages
2025-10-31 - Exevalator2.2.2isout.YoucannowlocalizeerrormessagestoJapanesewithasimplecopy-and-paste,andwe'veincludedseveralbugfixesandminorparseradjustments.

InsideRINPnOnline:ArchitectureOverview
2025-10-22 - AninsidelookatthearchitectureoftherecentlylaunchedonlineversionoftheRINPnscientificcalculator.It'sopensource,soyoucanfreelymodifyandreuseittobuildyourownwebcalculator(maybe!).

MeetRINPnOnline:UsetheScientificCalculatorAnywhere,Instantly
2025-10-21 - RINPn,thefreescientificcalculator,nowhasanonlineversionyoucanuseinstantlyinyourbrowser—onbothPCandsmartphones.Readtheannouncementfordetails.

TheVCSSLSupportAIisHere!—RequiresaChatGPTPlusAccountforPracticalPerformance
2025-08-19 - AnewAIassistantfortheVCSSLprogramminglanguageisheretoansweryourquestionsandhelpwithcoding.ThisarticleexplainshowtouseitandshowcasesplentyofrealQ&Aandgeneratedcodeexamples.

EnglishDocumentationforOurSoftwareandVCSSLIsNowNearlyComplete
2025-06-30 - We'rehappytoannouncethatthelarge-scaleexpansionofourEnglishdocumentationwiththesupportofAI—aprojectthatbegantwoyearsago—hasnowreacheditsinitialtargetmilestone.

VCSSL3.4.52Released:EnhancedIntegrationwithExternalProgramsandMore
2025-05-25 - Thisupdateintroducesenhancementstotheexternalprogramintegrationfeatures(e.g.,forrunningC-languageexecutables).Severalotherimprovementsandfixesarealsoincluded.Detailsinside.

» View More Articles
See Our News
on Twitter !
RINEARN Official Website | Top Page | Privacy Policy |
This website uses cookies for serving ads and analyzing traffic data. By continuing to use this website, you agree to our privacy policy.
This website is managed by RINEARN. All rights to the contents of this website are owned by RINEARN and its owner.
Copyright(C) RINEARN 2009 - 2026 All rights reserved.