Skip to main content

A generic multi-tool MCP Agent with Time, Weather, Dictionary, Calculator, etc.

Project description

MCPAgentAI :rocket:

PyPI Python Versions License

MCPAgentAI is a standardized tool wrapping framework for implementing and managing diverse tools in a unified way. It is designed to help developers quickly integrate and launch tool-based use cases.

Key Features

  • :wrench: Standardized Wrapping: Provides an abstraction layer for building tools using the MCP protocol.
  • :rocket: Flexible Use Cases: Easily add or remove tools to fit your specific requirements.
  • :sparkles: Out-of-the-Box Tools: Includes pre-built tools for common scenarios:
    • :clock2: Time utilities
    • :cloud: Weather information
    • :book: Dictionary lookups
    • :abacus: Calculator for mathematical expressions

Tech Stack :hammer_and_wrench:

  • Python: Core programming language
  • MCP Framework: Communication protocol
  • Docker: Containerization

🤔 What is MCP?

The Model Context Protocol (MCP) is a cutting-edge standard for context sharing and management across AI models and systems. Think of it as the language AI agents use to interact seamlessly. 🧠✨

Here’s why MCP matters:

  • 🧩 Standardization: MCP defines how context can be shared across models, enabling interoperability.
  • Scalability: It’s built to handle large-scale AI systems with high throughput.
  • 🔒 Security: Robust authentication and fine-grained access control.
  • 🌐 Flexibility: Works across diverse systems and AI architectures.

Alt text


Installation :package:

Install via PyPI

pip install mcpagentai

Usage :computer:

Run Locally

mcpagentai --local-timezone "America/New_York"

Run in Docker

  1. Build the Docker image:

    docker build -t mcpagentai .
    
  2. Run the container:

    docker run -i --rm mcpagentai
    

Tutorial: Selecting Specific Tools

You can configure MCPAgentAI to run only certain tools by modifying the agent configuration in your server or by updating the server.py file to only load desired agents. For example:

from mcpagentai.tools.time_agent import TimeAgent
from mcpagentai.tools.weather_agent import WeatherAgent
from mcpagentai.core.multi_tool_agent import MultiToolAgent

multi_tool_agent = MultiToolAgent([
    TimeAgent(),
    WeatherAgent()
])

This setup will only enable Time and Weather tools.


Integration Example: Claude Desktop Configuration

You can integrate MCPAgentAI with Claude Desktop using the following configuration:

claude_desktop_config.json

{
    "mcpServers": {
        "mcpagentai": {
            "command": "docker",
            "args": ["run", "-i", "--rm", "mcpagentai"]
        }
    }
}

Development :hammer_and_wrench:

  1. Clone this repository:

    git clone https://github.com/mcpagentai/mcpagentai.git
    cd mcpagentai
    
  2. (Optional) Create a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install dependencies:

    pip install -e .
    
  4. Build the package:

    python -m build
    
  5. Run tests:

    pytest
    

Contributing :handshake:

We welcome contributions! Please open an issue or pull request.


License: MIT
Enjoy! :tada:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpagentai-0.1.0.tar.gz (117.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpagentai-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file mcpagentai-0.1.0.tar.gz.

File metadata

  • Download URL: mcpagentai-0.1.0.tar.gz
  • Upload date:
  • Size: 117.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for mcpagentai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cdbc31db3743850aeb97c457c9ee592f11ae8498a2635eea58ffe76188aaa44d
MD5 8e097df7f15f0e34f45622ebd478e45f
BLAKE2b-256 92110deb911599f12927b11ba63778ec0e4fb5d8b781c32a1eb4372b3d027f8a

See more details on using hashes here.

File details

Details for the file mcpagentai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcpagentai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for mcpagentai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59fec9a28ddaba705e11f40afb06169f6610b228b3f819912f3eddf43823abbd
MD5 a30c01d7f59c3ad4d3a84bfcde0b47c2
BLAKE2b-256 19cd550e1e7119218bc180c6d3489a94b78a88ae1c7cbb7c29113f605e6b3cb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page