Skip to main content
Glama

GitHub Remote MCP Server

by brentlaster
test_calculator_agent.pyโ€ข360 B
from smolagents import MCPClient, CodeAgent, OllamaModel mcp_client = MCPClient({"url": "http://127.0.0.1:6277/sse"}) tools = mcp_client.get_tools() model = OllamaModel(model="llama3") agent = CodeAgent(tools=tools, model=model) question = "What is 12 * (5 + 3)?" response = agent.run(question) print(f"\n๐Ÿง  Prompt: {question}\n๐Ÿ“Ž Response: {response}")

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brentlaster/agent-mcp-ollama'

If you have feedback or need assistance with the MCP directory API, please join our Discord server