Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Model Context Protocol (MCP) client functions
Contributed by: Anton Antonov
A set of functions for interacting with Model Context Protocol (MCP) servers. The primary focus is to create Wolfram Language LLM-tool objects from MCP server tool specifications.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/MCPClient"]
To load the code after installation, evaluate this code:
Needs["AntonAntonov`MCPClient`"]
Create an MCP client by starting an MCP server using a Python file:
| In[1]:= | ![]() |
| Out[2]= |
Initialize the interaction between the MCP client and server:
| In[3]:= | ![]() |
| Out[4]= | ![]() |
Get a list of the MCP server tools and tabulate names and descriptions of the corresponding records:
| In[5]:= | ![]() |
| Out[6]= | ![]() |
Convert MCP tool specs into LLMTool objects:
| In[7]:= | ![]() |
| Out[8]= | ![]() |
Use the MCP tools to answer LLM requests:
| In[9]:= | ![]() |
| Out[9]= | ![]() |
The paclet functions MCPInitialize, MCPListTools, and MCPToLLMTool have the option "Echo" that can be used to monitor (or verify) the MCP tools setup and utilization.
Show the Python MCP server script included in the paclet:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Get the file name of Docker MCP server profile file:
| In[11]:= | ![]() |
| Out[7]= |
Summarize the content of that file:
| In[12]:= | ![]() |
| Out[15]= | ![]() |
Wolfram Language Version 14.3