Follow these steps to run the MCP Wolfram Alpha agent and tool in the cloud using Meshagent Rooms.

Required Environment Variables

  • WOLFRAM_API_KEY: Your Wolfram Alpha App ID.

Steps

  1. Install the Meshagent CLI and dependencies

    pip install "meshagent[all]"
    
  2. Sign up and authenticate for Meshagent

    Follow the authentication guide to create an account and log in via the CLI.

  3. Start the MCP Wolfram Alpha server in a Meshagent Room

    meshagent service test \
      --room=test \
      --role=agent \
      --image=meshagent/mcp-wolfram-alpha:latest \
      --env MESHAGENT_PORT=8001 \
      --env WOLFRAM_API_KEY=your-app-id \
      --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" \
      --name=mcp-wolfram-alpha-service
    

    This command starts a Meshagent Room named test with the MCP Wolfram Alpha server available as a callable service. Rooms will close if they go inactive.

  4. Join the room as a chatbot with the Wolfram Alpha toolkit enabled

    meshagent chatbot join \
      --room=test \
      --agent-name=sample \
      --name=sample \
      --toolkit=mcp-wolfram-alpha
    
    • This starts a chatbot in the test room with access to the Wolfram Alpha toolkit.
    • Multiple toolkits can be enabled in the same room for one agent.
    • The command output provides a link to interact with the agent and tools through the web interface.

Tools Available

Connect your chat repl to Wolfram Alpha computational intelligence.

Tools provided by this Server:

Tool NameShort Description
query-wolfram-alphaUse Wolfram Alpha to answer a question.

Tool Details

Tool: query-wolfram-alpha

Use Wolfram Alpha to answer a question. This tool should be used when you need complex math or symbolic intelligence.

ParameterTypeDescription
querystringThe question (query) to answer