Saqr-MCP

Saqr-MCP

saqr-mcp•byahmedhassan456

A Python application implementing an MCP server with tools for web search, Word document generation, memory management, and reasoning, paired with clients for local Ollama and cloud Groq models.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Performs real-time web searches using the Tavily API to retrieve up-to-date information.
  • •Creates Microsoft Word documents from markdown content with proper formatting.
  • •Stores, retrieves, and semantically searches memories using the mem0 memory system.
  • •Records and retrieves reasoning thoughts within a session, with statistics on recorded thoughts.

BEST FOR

  • •Building an interactive chat assistant that can search the web and generate Word documents.
  • •Adding persistent memory and semantic retrieval to model-driven workflows via mem0.
  • •Running against either local Ollama models or cloud Groq models through interchangeable clients.

ABOUT SAQR-MCP

Saqr-MCP is cataloged as an MCP server attributed to ahmedhassan456. A Python application implementing an MCP server with tools for web search, Word document generation, memory management, and reasoning, paired with clients for local Ollama and cloud Groq models. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Saqr-MCP 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.

FREQUENTLY ASKED QUESTIONS

Which model backends can I use?

You can use local models through Ollama or cloud models through Groq, switching by changing which client is imported in main.py.

What external service does web search use?

Web search uses the Tavily API, which requires a Tavily API key.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 06568577cbeb · 采集于 2026-11-13 10:45:26 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🦅 Saqr-MCP

Python Version License UV Package Manager

Saqr-MCP is a powerful Python application that implements the Model Context Protocol (MCP) to enable advanced AI assistant capabilities. It supports both local models through Ollama and cloud models through Groq, providing a flexible client-server architecture. The server component offers a rich set of tools including web search, memory management, document generation, and advanced reasoning capabilities.

image

✨ Features

  • 🤖 Interactive chat interface for querying models
  • 🔄 Support for both local models (Ollama) and cloud models (Groq)
  • 🔍 Advanced web search capabilities using Tavily API
  • 📝 Word document generation from markdown content
  • 🧠 Comprehensive memory management system using mem0
  • 💭 Advanced reasoning and thought process tracking
  • ⚡ Async architecture for efficient processing
  • 🎨 Visual loading animations for better user experience
  • 📊 Session-based thought logging and analysis
  • 📄 Document generation with markdown support

📋 Prerequisites

  • 🐍 Python 3.11 or higher
  • 🦙 Ollama installed with local models (for local model usage)
  • 📦 UV package manager (recommended)

🚀 Installation

  1. Clone this repository:

    git clone https://github.com/ahmedhassan456/Saqr-MCP.git
    cd saqr-mcp
    
  2. Create and activate a virtual environment (optional but recommended):

    uv venv
    # On Windows
    .venv\Scripts\activate
    # On Unix or MacOS
    source venv/bin/activate
    
  3. Install dependencies:

    uv add -r requirements.txt
    
  4. Set up environment variables:

    • Copy .env.example to .env
    • Configure the following variables:
      • 🔑 MODEL_NAME: Your preferred Ollama model (e.g., qwen3:1.7b)
      • 🔍 TAVILY_API_KEY: Your Tavily API key from Tavily website
      • ⚡ GROQ_MODEL_NAME: Your preferred Groq model name
      • 🔐 GROQ_API_KEY: Your Groq API key from Groq website
      • 🧠 MEM0_API_KEY: Your Mem0 API key from Mem0 website

💻 Usage

  1. For local model usage, ensure Ollama is running with your chosen model available

  2. Configure the client:

    • By default, the application uses Ollama client (from src.ollama_client import SaqrMCPClient)
    • To use Groq instead, modify main.py to use from src.groq_client import SaqrMCPClient
  3. Run the client:

    python main.py
    
  4. Type your queries in the interactive console:

    MCP Client Started!
    Type your queries or 'quit' to exit.
    
    Query:
    
  5. Type quit to exit the application

📁 Project Structure

  • 📄 main.py - Entry point that starts the MCP client
  • 📂 src/
    • 🔄 ollama_client.py - MCP client implementation for Ollama models
    • ⚡ groq_client.py - MCP client implementation for Groq models
    • 🛠️ server.py - MCP server implementation with all tools
    • 📝 logger.py - Custom logging utilities with visual animations

🛠️ Available Tools

The server implements a comprehensive set of tools for various functionalities:

🔍 Web Search and Document Generation

  • web_search: Performs real-time web searches using Tavily API to retrieve up-to-date information
  • word_file_generator: Creates Microsoft Word documents from markdown content with proper formatting

🧠 Memory Management

  • add_memory: Stores new memories with specified types and content in mem0
  • get_all_memories: Retrieves all stored memories, optionally filtered by type
  • search_memories: Performs semantic search through stored memories to find relevant information

💭 Reasoning and Thought Process

  • think: Records thoughts and reasoning processes for complex problem-solving
  • get_thoughts: Retrieves all thoughts recorded in the current session
  • clear_thoughts: Clears all recorded thoughts from the current session
  • get_thought_stats: Provides detailed statistics about recorded thoughts

⚙️ Environment Variables

VariableDescriptionDefault
🔑 OLLAMA_MODEL_NAMEThe name of the Ollama model to use (e.g., qwen3:1.7b)None
🔍 TAVILY_API_KEYTavily API Key for web search capabilitiesNone
⚡ GROQ_MODEL_NAMEThe name of the Groq model to useNone
🔐 GROQ_API_KEYGroq API Key for cloud model accessNone
🧠 MEM0_API_KEYMem0 API Key for memory managementNone

📦 Dependencies

  • 🔄 mcp[cli] - Model Context Protocol implementation
  • 🌐 httpx - HTTP client for Python
  • 📝 loguru - Python logging made simple
  • ⚡ groq - Groq API client
  • 🦙 ollama - Interface to Ollama for local models
  • 🔍 tavily-python - Search Engine tailored for AI agents
  • 🚀 fastapi - Web framework for building APIs
  • ⚡ uvicorn - ASGI server implementation
  • 📄 htmldocx - HTML to DOCX converter
  • 🔍 duckduckgo-search - Search engine integration
  • 📄 python-docx - DOCX file handling
  • 📝 markdown - Markdown processing
  • 🧠 mem0 - Memory management system

📄 License

MIT

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. 🍴 Fork the repository
  2. 🌿 Create your feature branch (git checkout -b feature/amazing-feature)
  3. 💾 Commit your changes (git commit -m 'Add some amazing feature')
  4. 📤 Push to the branch (git push origin feature/amazing-feature)
  5. 🔄 Open a Pull Request

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Saqr-MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/saqr-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools