Skip to main content

Mirror MCP SDK

Official Python SDK for the Mirror AI MCP Server — access 100+ crypto intelligence tools via REST API.

What's New in v4.2.1

✨ Universal Tool Execution — Execute any of 100+ MCP tools directly via REST API:

# Get Bitcoin price
result = client.execute_tool("get_symbol_price", {"symbol": "BTC"})
print(result["result"][0]["price"])

# List all available tools
tools = client.list_tools()
for tool in tools:
    print(f"{tool['name']}: {tool['description']}")

Installation

pip install mirror-mcp

Quick Start

from mirror_mcp import MirrorMCPClient

# Create client (reads MIRROR_API_KEY from env if not provided)
client = MirrorMCPClient(api_key="gl_mcp_...")

# List all 100+ executable tools
tools = client.list_tools()
for tool in tools:
    print(f"{tool['name']}: {tool['description']}")

# Execute any tool
result = client.execute_tool("get_symbol_price", {"symbol": "BTC"})
print(result["result"][0]["price"])

# Get market data
result = client.execute_tool("get_current_market_data", {"limit": 10})
for coin in result["result"]:
    print(f"{coin['symbol']}: ${coin['price']}")

# DeFi tools
result = client.execute_tool("query_defi_protocols", {"protocol": "Aave"})

# Security analysis
result = client.execute_tool("analyze_token_security", {"symbol": "ETH"})

# Compliance
result = client.execute_tool("compliance_search_documents", {"query": "MiCA"})

Authentication

Get your API key from mirror.glasslane.io:

export MIRROR_API_KEY="your-api-key"

Available Tool Categories

  • market — Prices, volume, technical indicators, top movers
  • defi — Protocols, yield farming, liquidity pools
  • security — Token security, contract analysis
  • compliance — Regulations, documents, risk assessment
  • analytics — Price correlation, momentum, volatility
  • blockchain — Wallet analysis, transaction patterns
  • arbitrage — Cross-DEX arbitrage opportunities
  • nft — NFT collections, ownership, whale tracking
  • alerts — Price alerts, market signals
  • research — Token research, whitepaper analysis

CLI Usage

# Check server health
mirror-mcp health

# List all 100+ tools
mirror-mcp tools

# List tools by category
mirror-mcp tools --category market

# Execute any tool
mirror-mcp call get_symbol_price '{"symbol": "BTC"}'
mirror-mcp call get_current_market_data

# Show API key permissions
mirror-mcp permissions

# Legacy: list skills/prompts (still supported)
mirror-mcp list-skills
mirror-mcp list-skills --category defi

Async Support

import asyncio
from mirror_mcp import MirrorMCPClient

async def get_prices():
    async with MirrorMCPClient(api_key="...") as client:
        # List tools
        tools = await client.list_tools_async()
        
        # Execute multiple tools concurrently
        results = await asyncio.gather(
            client.execute_tool_async("get_symbol_price", {"symbol": "BTC"}),
            client.execute_tool_async("get_symbol_price", {"symbol": "ETH"}),
            client.execute_tool_async("get_symbol_price", {"symbol": "SOL"}),
        )
        return results

asyncio.run(get_prices())

Error Handling

from mirror_mcp import MirrorMCPClient, AuthenticationError, ToolExecutionError

try:
    client = MirrorMCPClient(api_key="your-key")
    result = client.execute_tool("get_symbol_price", {"symbol": "BTC"})
except AuthenticationError as e:
    print(f"Authentication failed: {e}")
except ToolExecutionError as e:
    print(f"Tool execution failed: {e}")

Documentation

License

MIT License — Copyright © 2025 Glass Lane Pty Ltd

Metadata

Release files for mirror-mcp 4.2.1

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

Source distribution (sdist)

Source distribution for mirror-mcp 4.2.1
File Size Uploaded Provenance
mirror_mcp-4.2.1.tar.gz 253.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mirror-mcp 4.2.1
File Interpreter ABI Platform
mirror_mcp-4.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 499.2 kB

Release files / mirror_mcp-4.2.1.tar.gz

Download URL mirror_mcp-4.2.1.tar.gz
Size 253.8 kB
Tags Source
SHA-256 checksum
How to use checksums
acbf58dfcd05df13407b74dcde617394f61bbd6f54fc6113b5a1649ee73f9c01
BLAKE2b-256 checksum
How to use checksums
701861ac7ea72182b39be899bc0cd17e47b2e07e7c2d56ca79766f2d2b986f18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mirror_mcp-4.2.1-py3-none-any.whl

Download URL mirror_mcp-4.2.1-py3-none-any.whl
Size 245.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c213ba168ccbab4e8dad6b5654aa5f18ff98160ff1eb9bed6b50ca66b3b78cb3
BLAKE2b-256 checksum
How to use checksums
fb23aefdaff9f679e375a2c8e4f9e0a5d8e5e6937ea6ad9e06270c1b1f8fb510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for mirror-mcp 4.2.1

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.

Release history Release notifications | RSS feed

This release

4.2.1 This release

2 release files No provenance

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