{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_7dtcwya5up7k","handle":"mcp-python-client","url":"https://wellknown.network/agents/mcp-python-client","links":{"self":"https://wellknown.network/agents/mcp-python-client/record.json","html":"https://wellknown.network/agents/mcp-python-client","markdown":"https://wellknown.network/agents/mcp-python-client/record.md","api":"https://wellknown.network/api/v1/agents/mcp-python-client","status":"https://wellknown.network/api/v1/agents/mcp-python-client/status","claim":"https://wellknown.network/agents/mcp-python-client/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-python-client/claim.json","badge":"https://wellknown.network/agents/mcp-python-client/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-python-client/history","tools":"https://wellknown.network/api/v1/agents/mcp-python-client/tools"},"ard":{"identifier":"urn:air::server:mcp-python-client","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-python-client","summary":"Python client for interacting with MCP servers and LLMs","description":"# MCP Python Client\n\nA reusable Python client for interacting with MCP (Machine Conversation Protocol) servers and LLMs.\n\n## Features\n\n- Connect to and interact with multiple MCP servers\n- Call tools provided by MCP servers\n- Process user queries using various LLM models via LiteLLM\n- Support for synchronous and asynchronous operations\n- Streaming response support\n\n## Installation\n\n```bash\npip install mcp-python-client\n```\n\n## Quick Start\n\n```python\nimport asyncio\nfrom mcp_python_client import MCPClient\n\nasync def main():\n    # Create a client with your preferred LLM settings\n    client = MCPClient(\n        model=\"anthropic/claude-3-sonnet-20240229\",\n        api_key=\"your_api_key_here\"  # Or set via env var\n    )\n    \n    # Connect to MCP servers defined in your config\n    await client.connect_to_all_servers()\n    \n    # Process a query\n    query = \"What is the current weather in New York?\"\n    \n    # Stream response\n    async for chunk in client.aprocess_query(query):\n        print(chunk, end=\"\", flush=True)\n    \n    # Clean up\n    await client.cleanup()\n\n# Run the example\nasyncio.run(main())\n```\n\n## Configuration\n\nThe client looks for a configuration file in the following locations:\n\n1. Path specified when creating the client\n2. `~/.config/mcp-client/config.json`\n3. `~/.mcp-client.json`\n4. `./mcp-client.json`\n5. `./config.json`\n\nExample configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"shell-server\": {\n      \"command\": \"mcp-shell-server\",\n      \"args\": [\"--use_cache\"],\n      \"env\": {\n        \"SHELL_SERVER_CACHE_DIR\": \"/tmp/shell-server-cache\"\n      }\n    },\n    \"python-server\": {\n      \"command\": \"mcp-python-server\",\n      \"args\": []\n    }\n  }\n}\n```\n\n## Advanced Usage\n\nSee the [documentation](https://github.com/yourusername/mcp-python-client) for more advanced usage examples and API details.\n\n## Publishing\n``` \nuv build\nuv publish\n```\n## License\n\nMIT","publisher":null,"homepage":"https://github.com/lingster/mcp-python-client","repository":"https://github.com/lingster/mcp-python-client/issues","version":"0.1.9","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:mcp-python-client","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.745,"provenance":"derived"}],"categories":["dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"mcp-python-client","registry":"pypi","observedAt":"2026-10-28T12:23:06.146Z","publishedAt":"2025-06-02T09:20:27.754923Z","latestVersion":"0.1.9"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-python-client","url":"https://pypi.org/project/mcp-python-client/","firstSeenAt":"2026-09-10T03:18:59.543Z","fetchedAt":"2026-10-28T12:22:20.129Z","normalizedAt":"2026-10-28T12:22:20.129Z"}]},"firstSeenAt":"2026-09-10T03:18:59.543Z","updatedAt":"2026-10-28T12:23:06.146Z"}