Skip to main content

Python MCP Client: LLM-Powered Tool Orchestration Framework

License: MIT Python 3.8+ LangChain LLM Tools Open Source

A 100% open source Python framework for building, deploying, and orchestrating LLM-powered tools with Model Context Protocol (MCP). Create intelligent agents that can interact with databases, file systems, and web services through natural language processing. Free to use, modify, and distribute under the MIT license.

MCP Client Interface - LLM-powered tool orchestration dashboard

🚀 Key Features

  • MCP Tool Orchestration: Build and connect powerful LLM tools using standardized messaging protocols
  • Flask Web Interface: Interact with AI agents through an intuitive, user-friendly dashboard
  • LangChain & LangGraph Integration: Create sophisticated AI workflows with industry-standard frameworks
  • Multi-Server Support: Connect to multiple tool servers simultaneously from a single interface
  • Dynamic Server Management: Add, configure, and update tool servers at runtime without restarts

🏗️ Architecture Overview

  1. Flask Web Application: Modern web interface serving as the command center for your AI tools
  2. MultiServerMCPClient: Advanced client that orchestrates connections to multiple tool servers
  3. LangChain React Agent: Intelligent decision-making system that chooses the right tools for each task
  4. MCP Servers: Specialized microservices that expose domain-specific tools through a standardized protocol

🔧 Getting Started with Python MCP

Installation Options

Option 1: Install from PyPI (Recommended)

The simplest way to install Python MCP Client is via pip:

pip install python-mcp-client

Option 2: Install from Source

If you want the latest development version or plan to contribute:

  1. Clone the repository:

    git clone https://github.com/kernelmax/python-mcp-client.git
    cd python-mcp-client
    
  2. Set up a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows, use: .venv\Scripts\activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Set environment variables:

    export OPENAI_API_KEY=your-api-key-here
    

Running Your AI Tool Platform

  1. Start the Flask application:

    python flask_app.py
    
  2. Open your browser and navigate to http://localhost:5008

💡 Natural Language AI Tool Examples

Database Management with Natural Language

# Example natural language query
"Show me all users in the database that registered in the last month"

# How the AI agent processes your request
# 1. The LLM agent interprets the natural language query
# 2. It selects the appropriate database tool
# 3. It generates and executes optimized SQL: "SELECT * FROM users WHERE registration_date >= DATE_SUB(NOW(), INTERVAL 1 MONTH)"
# 4. Results are returned in a human-readable format

Database Creation Through Conversation

# Example natural language command
"Create a new database called customer_analytics"

# How the AI agent executes your request
# 1. The LLM agent processes your instructions
# 2. It selects the database creation tool
# 3. It executes the appropriate command with error handling
# 4. Confirmation is provided with next steps

Intelligent File Operations

# Example natural language request
"List all Python files in the current directory"

# How the AI assistant helps you
# 1. The LLM agent processes your request
# 2. It selects the file system tools
# 3. It intelligently filters results for Python files
# 4. Results are displayed in an organized format

🛠️ Available MCP Tool Servers

MySQL Database Assistant

A powerful AI database interface providing tools for:

  • SQL query execution with natural language translation
  • Automated table creation, insertion, and data manipulation
  • Database management with intelligent suggestions
  • Schema visualization and exploration

File System Navigator

An intelligent file system assistant with tools for:

  • Context-aware file reading and analysis
  • Smart file writing with formatting suggestions
  • Automatic file creation with templates
  • Directory organization and file discovery

🔮 Future Development Roadmap

  • User Authentication: Secure access control with role-based permissions
  • Database Engine Expansion: Support for PostgreSQL, MongoDB, and other databases
  • Real-time Communication: WebSocket integration for live updates and responses
  • Containerized Deployment: Docker compose setup for one-click deployment
  • Comprehensive Testing: Extensive test suite for reliability and stability
  • Session Persistence: Save and resume conversations with your AI tools

Planned MCP Server Integrations

We plan to expand our MCP server ecosystem with integrations for popular platforms:

  • Google Workspace: Connect to Gmail, Google Docs, Google Drive, and Google Calendar
  • Microsoft 365: Integrate with Outlook, OneDrive, and Microsoft Teams
  • Slack: Send messages, manage channels, and automate workflows
  • Salesforce: Query customer data, manage leads, and update records
  • Jira: Create and manage issues, track projects, and generate reports
  • GitHub: Manage repositories, issues, and pull requests
  • Zoho: Connect to Zoho CRM, Zoho Books, and other Zoho applications
  • Zendesk: Handle support tickets and customer inquiries
  • HubSpot: Manage marketing campaigns and customer relationships
  • Notion: Create and update pages, databases, and workspaces

💪 How to Contribute

We enthusiastically welcome contributors of all experience levels! Whether you're fixing a typo, improving documentation, or adding a major feature, your help makes this project better.

Contribute to the project on GitHub: https://github.com/kernelmax/python-mcp-client

Ways to Contribute

  • Code contributions: Add new features or fix bugs
  • Documentation: Improve explanations, add examples, or fix typos
  • Bug reports: Help us identify issues
  • Feature requests: Suggest new capabilities
  • User experience: Provide feedback on usability
  • Testing: Help ensure everything works properly

📜 License Information

This project is fully open source and available under the MIT License. This means you are free to:

  • Use the code commercially
  • Modify the code
  • Distribute your modifications
  • Use privately
  • Sublicense

We believe in the power of open source to drive innovation and make AI tools accessible to everyone. By making this project open source, we encourage collaboration, transparency, and community-driven development.

📬 Contact & Support

For questions, feature requests, or support, please open an issue on GitHub or contact the maintainers directly.

Metadata

Release files for python-mcp-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-mcp-client 0.1.2
File Size Uploaded Provenance
python_mcp_client-0.1.2.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-mcp-client 0.1.2
File Interpreter ABI Platform
python_mcp_client-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / python_mcp_client-0.1.2.tar.gz

Download URL python_mcp_client-0.1.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d5232dfc7c4ca729c6967f209277cb95c1f98c6e00dad7282e619fe767734823
BLAKE2b-256 checksum
How to use checksums
8e6c47739257e4b54d615191a465f606cd52a68589589a6d9edebc44337a51e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / python_mcp_client-0.1.2-py3-none-any.whl

Download URL python_mcp_client-0.1.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db1934151e81ec3f08f6e677b38cee478b7aab027a104a9fd9acf45aef3be60f
BLAKE2b-256 checksum
How to use checksums
1bde95d323e7db417962447d9e9d2d48610931fea270a09f929ddf3308c5bdce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for python-mcp-client 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page