muse-glimmer-agent
Enables MCP clients to interact with a local AI agent through Ollama, providing tools for checking weather, current time, and available models, while tracing calls to Langfuse.
README
Muse Glimmer + MCP + Langfuse (local)
A minimal Pydantic AI agent that:
- runs
muse-glimmer(Meta's 30B agentic model) through a local Ollama instance, - has MCP enabled: a local FastMCP server (
mcp_server.py) is attached as a stdio subprocess, exposingget_weather,get_current_time, andlist_ollama_modelsas agent tools, - sends full traces (model requests, tool calls, outputs) to a local Langfuse instance for observability.
Prerequisites
- Ollama running with the model pulled:
ollama pull muse-glimmer - A local Langfuse instance (e.g. via
docker composefrom the Langfuse repo) reachable athttp://localhost:3000. - uv (or use
python3 -m venv+pip).
Setup
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
Run
uv run python agent.py
The agent answers three demo prompts, calling MCP tools as needed:
🧑 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 ...
Observability (Langfuse)
Open http://localhost:3000 → Traces. Each run produces traces named
muse-glimmer-mcp-agent, with spans for model requests (input/output tokens)
and each MCP tool call — inspect inputs, outputs, latencies, and costs.
Expose the agent as an MCP server
agent_mcp_server.py flips the architecture around: the agent itself becomes
an MCP server exposing one tool — ask_agent(prompt) — to any MCP client
(Claude Desktop, VS Code, Cursor, another Pydantic AI agent, ...). Each call
runs muse-glimmer via Ollama, still has the inner MCP tools, and is traced
to Langfuse.
Run the server
uv run python agent_mcp_server.py
Client configuration
Point any MCP client at this server using your uv-managed venv's Python
(uv run --project <repo> python also works). Examples:
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"]
}
}
}
Layout
| File | Purpose |
|---|---|
agent.py |
Pydantic AI agent: Ollama model + MCP capability + Langfuse |
mcp_server.py |
FastMCP server (stdio) exposing the local tools |
agent_mcp_server.py |
Exposes the agent itself as an MCP server (ask_agent tool) |
.env |
Langfuse + Ollama configuration |
pydantic-ai-mcp-server-sample
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。