Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
MCPClient
Guides
Thin MCP Client
Tech Notes
Client for a Python-made MCP server
Client for Docker MCP Toolkit
Symbols
MCPInitialize
MCPKill
MCPListTools
MCPStart
MCPToLLMTool
Client for Docker MCP Toolkit
I
n
t
r
o
d
u
c
t
i
o
n
L
L
M
i
n
v
o
c
a
t
i
o
n
s
M
C
P
S
e
t
u
p
a
n
d
i
n
i
t
i
a
l
i
z
a
t
i
o
n
S
t
o
p
p
i
n
g
t
h
e
M
C
P
s
e
r
v
e
r
p
r
o
c
e
s
s
T
o
o
l
s
d
i
s
c
o
v
e
r
y
a
n
d
c
r
e
a
t
i
o
n
Introduction
This notebook has a complete usage example of a
thin
Model Context Protocol (MCP) client of the Raku paclet "MCPClient".
The MCP server run in Docker -- see
D
o
c
k
e
r
M
C
P
T
o
o
l
k
i
t
.
"MCPClient" provides a set of functions for using MCP server's methods by converting them to
L
L
M
T
o
o
l
objects. Those objects can be used with Wolfram Language's Large Language Model (LLM) framework. (
L
L
M
S
y
n
t
h
e
s
i
z
e
,
L
L
M
F
u
n
c
t
i
o
n
,
L
L
M
C
o
n
f
i
g
u
r
a
t
i
o
n
.)
Install the paclet and load it
I
n
[
2
]
:
=
P
a
c
l
e
t
I
n
s
t
a
l
l
[
"
A
n
t
o
n
A
n
t
o
n
o
v
/
M
C
P
C
l
i
e
n
t
"
]
;
N
e
e
d
s
[
"
A
n
t
o
n
A
n
t
o
n
o
v
`
M
C
P
C
l
i
e
n
t
`
"
]
;
MCP Setup and initialization
Get Docker profile file name
I
n
[
2
6
]
:
=
p
r
o
f
i
l
e
F
i
l
e
=
F
i
l
e
N
a
m
e
J
o
i
n
[
{
P
a
c
l
e
t
F
i
n
d
[
"
A
n
t
o
n
A
n
t
o
n
o
v
/
M
C
P
C
l
i
e
n
t
"
]
〚
1
〛
[
"
L
o
c
a
t
i
o
n
"
]
,
"
R
e
s
o
u
r
c
e
s
"
,
"
d
e
f
a
u
l
t
_
d
o
c
k
e
r
_
p
r
o
f
i
l
e
.
j
s
o
n
"
}
]
;
Import the profile
I
n
[
3
2
]
:
=
R
u
n
P
r
o
c
e
s
s
[
{
"
/
u
s
r
/
l
o
c
a
l
/
b
i
n
/
d
o
c
k
e
r
"
,
"
m
c
p
"
,
"
p
r
o
f
i
l
e
"
,
"
i
m
p
o
r
t
"
,
p
r
o
f
i
l
e
F
i
l
e
}
]
Setup MCP server process creation command elements
I
n
[
3
3
]
:
=
c
m
d
=
{
"
/
u
s
r
/
l
o
c
a
l
/
b
i
n
/
d
o
c
k
e
r
"
,
"
m
c
p
"
,
"
g
a
t
e
w
a
y
"
,
"
r
u
n
"
,
"
-
-
p
r
o
f
i
l
e
"
,
"
d
e
f
a
u
l
t
-
d
o
c
k
e
r
-
p
r
o
f
i
l
e
"
}
;
Create the MCP client object
I
n
[
3
4
]
:
=
c
l
i
e
n
t
=
M
C
P
S
t
a
r
t
[
c
m
d
,
P
r
o
c
e
s
s
E
n
v
i
r
o
n
m
e
n
t
G
e
t
E
n
v
i
r
o
n
m
e
n
t
[
]
]
;
F
u
n
c
t
i
o
n
[
]
[
]
Initialize the client
I
n
[
3
6
]
:
=
r
=
M
C
P
I
n
i
t
i
a
l
i
z
e
[
c
l
i
e
n
t
,
"
P
a
u
s
e
"
1
0
]
;
F
u
n
c
t
i
o
n
[
]
[
]
Tools discovery and creation
Get the MCP server tools list (and tabulate parts of it)
I
n
[
4
2
]
:
=
m
c
p
T
o
o
l
s
=
M
C
P
L
i
s
t
T
o
o
l
s
[
c
l
i
e
n
t
,
"
P
a
u
s
e
"
8
]
;
m
c
p
T
o
o
l
s
/
/
M
a
p
[
K
e
y
T
a
k
e
[
#
,
{
"
n
a
m
e
"
,
"
d
e
s
c
r
i
p
t
i
o
n
"
}
]
&
,
#
]
&
/
/
D
a
t
a
s
e
t
/
/
R
e
s
o
u
r
c
e
F
u
n
c
t
i
o
n
[
"
G
r
i
d
T
a
b
l
e
F
o
r
m
"
]
Make
LLMTool
objects
I
n
[
1
8
]
:
=
t
o
o
l
s
=
M
C
P
T
o
L
L
M
T
o
o
l
[
c
l
i
e
n
t
,
m
c
p
T
o
o
l
s
]
Make a configuration with the tools
I
n
[
1
9
]
:
=
c
o
n
f
=
L
L
M
C
o
n
f
i
g
u
r
a
t
i
o
n
[
"
M
o
d
e
l
"
{
"
O
p
e
n
A
I
"
,
"
g
p
t
-
5
.
3
-
c
h
a
t
-
l
a
t
e
s
t
"
}
,
"
M
a
x
T
o
k
e
n
s
"
8
1
9
2
,
"
T
o
o
l
s
"
t
o
o
l
s
]
;
LLM invocations
Find the unaccepted GitHub Pull Requests (PRs):
I
n
[
2
4
]
:
=
L
L
M
S
y
n
t
h
e
s
i
z
e
[
"
W
h
i
c
h
o
f
m
y
-
-
a
n
t
o
n
o
n
c
u
b
e
-
-
G
i
t
H
u
b
p
u
l
l
r
e
q
u
e
s
t
s
a
r
e
p
e
n
d
i
n
g
?
"
,
L
L
M
E
v
a
l
u
a
t
o
r
c
o
n
f
]
Stopping the MCP server process
Kill the MCP client process
I
n
[
4
3
]
:
=
MCPKill[client]
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
T
h
i
n
M
C
P
C
l
i
e
n
t
R
e
l
a
t
e
d
T
e
c
h
N
o
t
e
s
▪
C
l
i
e
n
t
f
o
r
a
P
y
t
h
o
n
-
m
a
d
e
M
C
P
s
e
r
v
e
r
"
"