ClientsMCPy
1.0 > Request to upload 2.1.25%$ ClientsMCPy Version: 1.0
License: MIT
Overview ClientsMCPy is a Python-based client designed to interact with servers implementing the Model Context Protocol (MCP). MCP is an open protocol that enables AI models to securely interact with local and remote resources through standardized server implementations. This client facilitates seamless communication with MCP servers, allowing for enhanced AI capabilities and integrations.
Features MCP Compatibility: Fully supports interactions with MCP-compliant servers, enabling secure and standardized communication. Extensibility: Easily adaptable to incorporate additional functionalities or integrate with other systems. Lightweight Design: Minimal dependencies ensure ease of installation and integration into existing projects. Installation To install ClientsMCPy, clone the repository and install the required dependencies:
bash Copy Edit git clone https://github.com/catsanzsh/ClientsMCPy.git cd ClientsMCPy pip install -r requirements.txt Usage Here's a basic example of how to use ClientsMCPy to connect to an MCP server:
python Copy Edit from ClientsMCPy import MCPClient
Initialize the client
client = MCPClient(server_url='http://your-mcp-server.com')
Connect to the server
client.connect()
Send a request
response = client.send_request({ 'action': 'perform_task', 'data': {'key': 'value'} })
Handle the response
print(response)
Disconnect from the server
client.disconnect() For more detailed usage and advanced features, refer to the documentation.
Contributing Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure that your code adheres to the project's coding standards and includes appropriate tests.
License This project is licensed under the MIT License. See the LICENSE file for more details.
Acknowledgments Special thanks to the contributors and the open-source community for their invaluable support and contributions.
For any questions or support, please open an issue on the GitHub repository.
Sources