MCPServerObject["name"]
retrieves the MCP server with the given name.
MCPServerObject[…]["propery"]
gives the specified property of the MCP server.
Details
Examples
Basic Examples
Scope
Generalizations & Extensions
See Also
Wolfram`AgentTools`
Wolfram`AgentTools`
MCPServerObject
MCPServerObject["name"]
retrieves the MCP server with the given name.
MCPServerObject[…]["propery"]
gives the specified property of the MCP server.
Details
- Some predefined MCP servers that can be specified by name are:
-
"WolframAlpha" an MCP server that is optimized for retrieving information from Wolfram|Alpha "WolframLanguage" an MCP server that is optimized for writing and evaluating Wolfram Language code "Wolfram" a blend of Wolfram|Alpha and Wolfram Language functionality - Additionally, any other MCP servers you have created with CreateMCPServer can be referenced by name.
- Some valid values for "property" are:
-
"LLMConfiguration" the LLMConfiguration that defines the server features "Tools" the list of LLMTool objects available to the server "JSONConfiguration" a string corresponding to a JSON configuration file that you can use in many MCP clients "Installations" locations where the server has been installed
Examples
open all close allNeeds["Wolfram`AgentTools`"]Basic Examples (2)
Retrieve built-in MCP servers:
MCPServerObject["Wolfram"]MCPServerObject["WolframAlpha"]MCPServerObject["WolframLanguage"]Create a custom MCP server then retrieve it by name:
CreateMCPServer["My MCP Server", <|"Tools" -> {LLMTool["PrimeFinder", {"n" -> "Integer"}, Prime[#n]&]}|>]MCPServerObject["My MCP Server"]DeleteObject[%]Scope (1)
Get an MCPServerObject:
server = MCPServerObject["Wolfram"]Get the LLMConfiguration:
LLMConfiguration[server]See where the server has been installed:
server["Installations"]Generalizations & Extensions (1)
Use an MCPServerObject as an LLMConfiguration in LLMSynthesize:
server = MCPServerObject["WolframAlpha"]LLMSynthesize["Which generates more geothermal? New Zealand or Iceland?", LLMEvaluator -> LLMConfiguration[server]]ResourceFunction["ImportMarkdownString"][%]