Start a server
Note: Use a server you trust. The University sandbox cannot launch a server on your machine.
A separate process
An MCP server is a small program that exposes tools over a standard protocol.
Install or run a server from the docs, then keep it running in its own terminal while the agent runs.
Example command
Replace the command with a server listed in the MCP docs. The path in the next lesson must match a server you actually have.
Example
uvx mcp-server-timePlan the tool question
You cannot start a server in Try it Yourself. Practise the question the agent should answer once a server is up.
Example
from praisonai import Agent
agent = Agent(
instructions="List two facts an MCP time server might expose. Do not guess current time.",
)
print(agent.start("What would you ask a time MCP server?"))Reference: documentation