Model Context Protocol (MCP) is an open standard developed by Anthropic that streamlines how AI models connect with different data sources and tools.MCP defines specs for MCP clients and MCP servers. Today, MCP clients include Claude Desktop, IDEs like Cursor, and custom client
implementations written in frameworks like PydanticAI. There are also clients built directly into the OpenAI Responses API
and Anthropic’s Messages API.Riza provides a remote MCP server for use with standards-compliant MCP clients.
We offer a hosted Model Context Protocol (MCP) server so you can connect an agent to our Code Interpreter without downloading and running additional code, available at the following URL:https://mcp.riza.io/code-interpreterYou can use this server with any framework or client that supports remote MCP servers.
import osimport asynciofrom pydantic_ai.agent import Agentfrom pydantic_ai.mcp import MCPServerHTTPserver = MCPServerHTTP( url="${mcpServerURL}", headers={'Authorization': 'Bearer ' + os.getenv("RIZA_API_KEY")})agent = Agent('openai:gpt-4o', mcp_servers=[server]) async def main(): async with agent.run_mcp_servers(): result = await agent.run('How many days between 2000-01-01 and 2025-03-18?') print(result.data) #> There are 9,208 days between January 1, 2000, and March 18, 2025.if __name__ == "__main__": import asyncio asyncio.run(main())