
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A FastAPI-based backend for the Quirox Telegram Bot whose MCP server exposes Google Sheets, DuckDuckGo web search, and web content fetching tools to a Google Gemini AI agent.
Quirox Telegram Bot Backend with MCP Tool Server is cataloged as an MCP server attributed to himank-j. A FastAPI-based backend for the Quirox Telegram Bot whose MCP server exposes Google Sheets, DuckDuckGo web search, and web content fetching tools to a Google Gemini AI agent. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Quirox Telegram Bot Backend with MCP Tool Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No; the Gmail functions exist but appear commented out in mcp_server.py, so they are experimental or disabled.
The agent uses Google Gemini, specifically the Flash model, for reasoning and task execution.
README.md · 4bb6c4319994 · Fetched 2026-11-13 12:52:39 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This project provides the backend services for the Quirox Telegram Bot, featuring an AI agent capable of interacting with various tools like Google Sheets, Gmail (currently commented out), and web search via DuckDuckGo. It uses the Model Context Protocol (MCP) to manage communication between the AI model (Google Gemini) and the available tools. The backend is exposed via a FastAPI web server.
helpers/ghseet.py (via GoogleSheetsService).helpers/search_tools.py).helpers/search_tools.py).helpers/gmail_tools.py but appear commented out in mcp_server.py.mcp_server.py: Runs the MCP server, exposing tools (Sheets, Search, Fetch) to the AI model.mcp_client.py: Communicates with the MCP server, sends user queries to the Gemini model, handles tool calls, and manages the conversation flow.main.py: Starts a FastAPI web server, providing a /chat endpoint to interact with the AI agent via HTTP requests.├── README.md # This file ├── .env # Environment variables (API keys, paths) - MUST BE CREATED ├── .gitignore # Git ignore patterns ├── requirements.txt # Python dependencies ├── main.py # FastAPI application entry point ├── mcp_client.py # MCP client logic interacting with Gemini and MCP Server ├── mcp_server.py # MCP server exposing tools ├── helpers/ # Directory for helper modules and tools │ ├── config.py # Loads Gemini API key │ ├── gsheet_tools.py # (Potentially older) MCP tool definitions for Google Sheets │ ├── ghseet.py # Standalone GoogleSheetsService class │ ├── gmail_tools.py # Gmail service class and MCP tool definitions (currently unused) │ ├── search_tools.py # DuckDuckGo search and Web Content Fetcher classes │ └── init.py ├── telegram_bot/ # (Empty/Placeholder?) Directory for Telegram bot specific code └── bot/ # (Empty/Placeholder?) Another potential bot directory
## Setup
### 1. Prerequisites
* Python 3.8+
* Access to Google Cloud Platform for Sheets/Drive API and potentially Gmail API.
* Google Gemini API Key.
### 2. Clone the Repository
```bash
git clone <your-repository-url>
cd <repository-directory>
pip install -r requirements.txt
Create a .env file in the root directory by copying .env.example (if it existed) or creating it from scratch. Add the following variables:
# Google Gemini API Key
GEMINI_API_KEY=your_gemini_api_key
# Google Cloud Credentials (Choose ONE method: Service Account or OAuth)
# Method 1: Service Account (Recommended for servers)
# Path to your service account JSON key file
SERVICE_ACCOUNT_PATH=path/to/your/service_account.json
# Optional: Google Drive Folder ID to work within
DRIVE_FOLDER_ID=your_google_drive_folder_id
# Method 2: OAuth 2.0 (Requires user interaction for the first run)
# Path to your OAuth client secrets file (credentials.json)
CREDENTIALS_PATH=path/to/your/credentials.json
# Path where the OAuth token will be stored after authorization
TOKEN_PATH=token.json # Keep default unless you have a reason to change
# Method 3: Base64 Encoded Service Account Config (Alternative)
# CREDENTIALS_CONFIG=your_base64_encoded_service_account_json_string
Important:
CREDENTIALS_PATH), the first time mcp_server.py (or code using GoogleSheetsService/GmailService) runs, it will open a browser window for you to authorize the application. The resulting token.json will be saved.SERVICE_ACCOUNT_PATH), ensure the service account email has been granted appropriate permissions (e.g., Editor) on the target Google Sheets or Drive Folder.SERVICE_ACCOUNT_PATH in .env to the path of the downloaded JSON file.credentials.json (or update CREDENTIALS_PATH in .env).The application consists of two main parts that need to run concurrently: the MCP Server and the FastAPI frontend (which uses the MCP Client).
This server provides the tools (Sheets, Search) to the AI.
python mcp_server.py
Keep this terminal window open.
This starts the web server that listens for chat requests.
python main.py
# or using uvicorn directly for more options:
# uvicorn main:app --reload --host 0.0.0.0 --port 8000
You can now send POST requests to the /chat endpoint:
Example using curl:
curl -X POST "http://localhost:8000/chat" \
-H "Content-Type: application/json" \
-d '{"message": "Create an excel sheet named '\''Test Sheet'\'' and add the headers Name, Age, City in the first row."}'
The response will contain the final answer generated by the AI after potentially interacting with the tools via the MCP server.
helpers/)config.py: Loads the GEMINI_API_KEY from the environment.search_tools.py: Contains DuckDuckGoSearcher for web searches and WebContentFetcher for retrieving content from URLs. Includes rate limiting.ghseet.py: Implements GoogleSheetsService providing a class-based interface to Google Sheets and Drive APIs (Create, Read, Update, Batch Update, Add Rows/Cols, List Sheets, Share, etc.). Handles authentication internally.gmail_tools.py: Implements GmailService (similar structure to GoogleSheetsService) for Gmail operations. Contains MCP tool definitions for email tasks, though currently seems disabled in the mcp_server.py.gsheet_tools.py: Contains older, function-based MCP tool definitions for Google Sheets, likely superseded by ghseet.py.Key dependencies include:
fastapi, uvicorn: For the web server.mcp: Model Context Protocol library.google-api-python-client, google-auth-oauthlib, google-auth: Google API libraries.google-generativeai: Google Gemini client library.python-dotenv: For loading environment variables.httpx, beautifulsoup4: For web search and content fetching.rich: For formatted console output.See requirements.txt for the full list.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Quirox Telegram Bot Backend with MCP Tool Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/quirox-telegram-bot)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.