🤖 mcp-ollama-beeai
About
A minimal agentic app to interact with OLLAMA models leveraging multiple MCP server tools using BeeAI framework.
Details
- Author
- tamdilip
- Downloads
- 356
- Categories
- AI
Jump to
- Chat interface with LLM‑powered reasoning and action steps
- Use any local Ollama model (configurable via .env)
- Pre‑configured Postgres and Fetch MCP servers
- Switch MCP agents on the fly from the UI
- Responses rendered in readable Markdown format
- Built on the BeeAI framework for easy ReAct agent setup
Install Ollama, serve it locally, and pull at least one model (default: llama3.1). Configure your MCP servers in mcp-servers.json (defaults include Postgres and Fetch). Clone the repo, run npm i && npm start, then open http://localhost:3000. Use the UI dropdowns to choose a server and tool before asking questions.
🤖 mcp-ollama-beeai
A minimal client app to interact with local OLLAMA models leveraging multiple MCP agent tools using BeeAI framework.> Below is a sample visual of this client app with chat interface, displaying the postgres database operation performed with thinking steps the AI has taken to use the right MCP agent and tranforming the request & response with LLM:
<video controls loop muted poster="https://raw.githubusercontent.com/tamdilip/mcp-ollama-beeai/docs/demo-pic.png" src="https://github.com/user-attachments/assets/618b76b5-111c-493f-a0fe-d974b915d619" title="Demo Video"></video>
Usage
📋 Pre-requisite
1. Local ollama server
Install and serve ollama in your local machine with the following commands. - Make sure you have enough memory available in your machine, atleast 16GB RAM for models to perform. - Skip this installation in your local, if you're going to use a remote server for model. $ curl -fsSL https://ollama.com/install.sh | sh
$ ollama serve
$ ollama pull llama3.1
2. MCP servers list configuration
Add your MCP agents in the mcp-servers.json file in root folder, for the app to pickup and work along with the LLM.
- Default servers included are postgres and fetch. Make sure to update you postgres connection URL
- List of other MCP agent tools availabe for configuration - https://modelcontextprotocol.io/examples
3 .env
If you want to use a different LLM model and LLM server, override the below properties beforenpm start
OLLAMA_CHAT_MODEL=llama3.1
OLLAMA_BASE_URL=http://localhost:11434/api
🎮 Boot up your app
$ git clone https://github.com/tamdilip/mcp-ollama-beeai.git
$ cd mcp-ollama-beeai
$ npm i
$ npm start
Once the app is up and running, hit in Browser -> http://localhost:3000
Additional Context:
- By default on landing no MCP agent is referred for the questions. - The respective MCP agent to be used a question can be selected from theServer & tools dropdown in UI.
- BeeAI framework is used for ease setup of ReAct (Reason And Act) agent with MCP tools.
- Markdown JS library is used to render the responses in proper readable visual format.
Happy coding :) !!
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
