muse-glimmer-agent
Muse Glimmer + MCP + Langfuse (local)
Минимальный агент на Pydantic AI, который:
запускает
muse-glimmer(агентную модель Meta на 30 млрд параметров) через локальный экземпляр Ollama;подключает MCP: локальный сервер FastMCP (
mcp_server.py) работает какstdio-подпроцесс и предоставляетget_weather,get_current_timeиlist_ollama_modelsв качестве инструментов агента;отправляет полные трейсы (запросы моделей, вызовы инструментов, результаты) в локальный экземпляр Langfuse для наблюдаемости.
Требования
Ollama запущен с загруженной моделью:
ollama pull muse-glimmerЛокальный экземпляр Langfuse (например, через
docker composeиз репозитория Langfuse), доступный по адресуhttp://localhost:3000.uv (или используйте
python3 -m venv+pip).
Related MCP server: MCP Ollama Consult Server
Настройка
cp .env.example .env # then fill in your Langfuse keys
uv sync # installs pydantic-ai, fastmcp, langfuse, ....env:
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_BASE_URL=http://localhost:3000
LANGFUSE_HOST=http://localhost:3000
OLLAMA_BASE_URL=http://localhost:11434/v1
OLLAMA_MODEL=muse-glimmerЗапуск
uv run python agent.pyПосле запуска агент отвечает на три демонстрационных запроса, вызывая MCP-инструменты по мере необходимости:
🧑 User: What is the weather in Paris today?
🤖 Agent: Weather in Paris: clear skies, 22°C, humidity 51%.
🧑 User: What time is it in Tokyo right now?
🤖 Agent: The current time in Asia/Tokyo is 2026-08-25 21:04:33 JST.
🧑 User: Which Ollama models are available locally?
🤖 Agent: NAME ID SIZE MODIFIED ...Наблюдаемость (Langfuse)
Откройте http://localhost:3000 → Traces. Каждый запуск создаёт трейсы с именем muse-glimmer-mcp-agent, в которых видны спаны для запросов модели (входные/выходные токены) и каждого вызова MCP-инструмента. Можно посмотреть входные данные, результаты, задержки и стоимость.
Предоставление агента как MCP-сервера
agent_mcp_server.py переворачивает архитектуру: агент сам становится MCP-сервером и предоставляет один инструмент — ask_agent(prompt) — любому MCP-клиенту (Claude Desktop, VS Code, Cursor, другому агенту на Pydantic AI, ...). Каждый вызов запускает muse-glimmer через Ollama, сохраняя внутренние MCP-инструменты под капотом, и записывает трейсы в Langfuse.
Запуск сервера
uv run python agent_mcp_server.pyНастройка клиента
Укажите любому MCP-клиенту на этот сервер, используя Python из вашего uv-окружения (uv run --project <repo> python тоже подойдёт).
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"muse-glimmer-agent": {
"command": "/home/d3lee/.local/bin/uv",
"args": ["run", "--project", "/home/d3lee/my-repos/pydantic-ai-mcp-server-sample", "python", "agent_mcp_server.py"]
}
}
}VS Code — .vscode/mcp.json:
{
"servers": {
"muse-glimmer-agent": {
"type": "stdio",
"command": "uv",
"args": ["run", "--project", "/home/d3lee/my-repos/pydantic-ai-mcp-server-sample", "python", "agent_mcp_server.py"]
}
}
}Cursor — .cursor/mcp.json:
{
"mcpServers": {
"muse-glimmer-agent": {
"command": "uv",
"args": ["run", "--project", "/home/d3lee/my-repos/pydantic-ai-mcp-server-sample", "python", "agent_mcp_server.py"]
}
}
}Состав проекта
Файл | Назначение |
| Агент Pydantic AI: модель Ollama + MCP + Langfuse |
| FastMCP server (stdio), exposing a local tool |
| Предоставляет агент as a MCP server (tool |
| Установка Langfuse + Ollama |
pydantic-ai-mcp-server-sample
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables seamless integration between Ollama's local LLM models and MCP-compatible applications, supporting model management and chat interactions.131,209171AGPL 3.0
- AlicenseAqualityCmaintenanceEnables consulting with local Ollama models for reasoning from alternative viewpoints. Supports sending prompts to Ollama models and listing available models on your local Ollama instance.51MIT
- AlicenseAqualityDmaintenanceIntegrates Ollama's local AI models with MCP clients, enabling listing models, viewing model details, and asking questions to models.3MIT
- FlicenseNot gradedqualityCmaintenanceExposes system tools (disk usage, file listing) and weather information via Open-Meteo to MCP-compatible LLMs.
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/saram-io/pydantic-ai-mcp-server-sample'
If you have feedback or need assistance with the MCP directory API, please join our Discord server