Confidential guide on numerology and astrology, based of GG33 Public information

mcp-openai-gemini-llama-example
3 years
Works with Finder
3
Github Watches
32
Github Forks
160
Github Stars
How to use Anthropic MCP Server with open LLMs, OpenAI or Google Gemini
This repository contains a basic example of how to build an AI agent using the Model Context Protocol (MCP) with an open LLM (Meta Llama 3), OpenAI or Google Gemini, and a SQLite database. It's designed to be a simple, educational demonstration, not a production-ready framework.
OpenAI example: https://github.com/jalr4ever/Tiny-OAI-MCP-Agent
Setup
This code sets up a simple CLI agent that can interact with a SQLite database through an MCP server. It uses the official SQLite MCP server and demonstrates:
- Connecting to an MCP server
- Loading and using tools and resources from the MCP server
- Converting tools into LLM-compatible function calls
- Interacting with an LLM using the
openai
SDK orgoogle-genai
SDK.
How to use it
- Docker installed and running.
- Hugging Face account and an access token (for using the Llama 3 model).
- Google API key (for using the Gemini model).
Installation
-
Clone the repository:
git clone https://github.com/philschmid/mcp-openai-gemini-llama-example cd mcp-openai-gemini-llama-example
-
Install the required packages:
pip install -r requirements.txt
-
Log in to Hugging Face
huggingface-cli login --token YOUR_TOKEN
Examples
Llama 3
Run the following command
python sqlite_llama_mcp_agent.py
The agent will start in interactive mode. You can type in prompts to interact with the database. Type "quit", "exit" or "q" to stop the agent.
Example conversation:
Enter your prompt (or 'quit' to exit): what tables are available?
Response: The available tables are: albums, artists, customers, employees, genres, invoice_items, invoices, media_types, playlists, playlist_track, tracks
Enter your prompt (or 'quit' to exit): how many artists are there
Response: There are 275 artists in the database.
Gemini
Run the following command
GOOGLE_API_KEY=YOUR_API_KEY python sqlite_gemini_mcp_agent.py
Future plans
I'm working on a toolkit to make implementing AI agents using MCP easier. Stay tuned for updates!
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
I find academic articles and books for research and literature reviews.
Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Awesome MCP Servers - A curated list of Model Context Protocol servers
Enable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.
Reviews

user_TBp9cNxE
I'm thoroughly impressed with the mcp-openai-gemini-llama-example by philschmid. This project is a fantastic resource for anyone looking to integrate OpenAI into their applications. The documentation is clear, and the example provided is practical and easy to follow. Highly recommended for both beginners and advanced users! Check it out on GitHub!