LLaMa-MCP-Streamlit

MCP.Pizza Chef: Nikunj2003

LLaMa-MCP-Streamlit is an interactive AI assistant client built using Streamlit, NVIDIA NIM's LLaMa 3.3:70B, Ollama, and the Model Control Protocol (MCP). It offers a chat-based interface enabling users to interact with large language models, execute external tools in real-time, retrieve data, and perform actions seamlessly. The client supports custom model selection, API configuration for multiple backends, and integrates MCP tools to enhance usability and dynamic data processing within a user-friendly environment.

Unmaintained ยท No commits in 20 months.

Use This MCP client To

Interact with LLMs via a chat interface for real-time responses Execute external tools dynamically through MCP integration Configure and switch between NVIDIA NIM and Ollama LLM backends Retrieve and process real-time data within conversations Build custom AI assistants with Streamlit UI and MCP tool orchestration

README

Llama MCP Streamlit

This project is an interactive AI assistant built with Streamlit, NVIDIA NIM's API (LLaMa 3.3:70b)/Ollama, and Model Control Protocol (MCP). It provides a conversational interface where you can interact with an LLM to execute real-time external tools via MCP, retrieve data, and perform actions seamlessly.

The assistant supports:

  • Custom model selection (NVIDIA NIM / Ollama)
  • API configuration for different backends
  • Tool integration via MCP to enhance usability and real-time data processing
  • A user-friendly chat-based experience with Streamlit

๐Ÿ“ธ Screenshots

Homepage Screenshot

Tools Screenshot

Chat Screenshot

Chat (What can you do?) Screenshot

๐Ÿ“ Project Structure

llama_mcp_streamlit/
โ”‚โ”€โ”€ ui/
โ”‚   โ”œโ”€โ”€ sidebar.py       # UI components for Streamlit sidebar
โ”‚   โ”œโ”€โ”€ chat_ui.py       # Chat interface components
โ”‚โ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ agent.py         # Handles interaction with LLM and tools
โ”‚   โ”œโ”€โ”€ mcp_client.py    # MCP client for connecting to external tools
โ”‚   โ”œโ”€โ”€ mcp_server.py    # Configuration for MCP server selection
โ”‚โ”€โ”€ config.py            # Configuration settings
โ”‚โ”€โ”€ main.py              # Entry point for the Streamlit app
.env                      # Environment variables
Dockerfile                # Docker configuration
pyproject.toml            # Poetry dependency management

๐Ÿ”ง Environment Variables

LLaMa-MCP-Streamlit FAQ

How do I configure different LLM backends in LLaMa-MCP-Streamlit?
You can configure API settings for NVIDIA NIM and Ollama models directly within the client interface to switch between them seamlessly.
Can I integrate custom tools with this client?
Yes, LLaMa-MCP-Streamlit supports tool integration via MCP, allowing you to add and execute external tools in real-time.
What is the role of Streamlit in this project?
Streamlit provides the user-friendly chat-based interface for interacting with the LLM and managing tool executions.
Does this client support multiple LLM providers?
Yes, it supports NVIDIA NIM's LLaMa and Ollama, and can be extended to other MCP-compatible LLM providers like OpenAI, Claude, and Gemini.
How does MCP enhance the functionality of this client?
MCP enables the client to orchestrate real-time context, tool calling, and API interactions, making conversations dynamic and actionable.
Is it possible to customize the UI?
Since the UI is built with Streamlit, you can customize the interface components to fit your specific needs.
What programming languages and frameworks are used?
The client is built primarily with Python using Streamlit for the UI and integrates MCP for model and tool orchestration.