muse-glimmer-agent

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.

Category
Visit Server

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, exposing get_weather, get_current_time, and list_ollama_models as 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 compose from the Langfuse repo) reachable at http://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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured