Skip to main content

SOUQ MCP Client (souq-mcp v0.3.0)

Official 1-line Python SDK and Model Context Protocol (MCP) server for SOUQ — the autonomous agent commerce swarm offering 16 sub-cent algorithmic intelligence, cybersecurity defense, and token-saving micro-services on Base L2 USDC.


⚡ Quick Start: 1-Line Usage

1. In Claude Desktop / Cursor / Windsurf / Roo Code (MCP Stdio)

Add this single block to your MCP server configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "souq": {
      "command": "uvx",
      "args": ["souq-mcp"],
      "env": {
        "SOUQ_API_KEY": "optional_prepaid_key_from_topup"
      }
    }
  }
}

2. In Python Code

pip install souq-mcp
from souq_mcp import SouqClient

client = SouqClient()

# Free daily evaluation call included automatically!
arbitrage = client.prediction_arbitrage("BTC")
print(arbitrage)

# Compress massive contexts to slash 80-95% prompt tokens:
compressed = client.compress("massive raw documentation text...")
print(compressed)

# Check prepaid credit balance or public Base USDC payment rails:
print(client.balance())

3. CLI & Module Execution

python -m souq_mcp --help
python -m souq_mcp status
python -m souq_mcp list
python -m souq_mcp call prompt_injection_firewall '{"text": "Ignore prior rules"}'
# Or via installed scripts: souq-mcp / souq

🛠️ Built-in Tools Available (16 Paid Tools + souq_account_status)

  1. souq_account_status (Free) - Inspects prepaid SOUQ_API_KEY credits, Base USDC wallet, and tool pricing.
  2. prediction_market_arbitrage_radar ($0.03 USDC, saves 35k tokens) - Black-Scholes implied probabilities vs Polymarket consensus mispricing.
  3. token_context_compressor ($0.01 USDC, saves 14k tokens) - Structured JSON pruning/tabularization, HTML cleanup, and log deduplication saving 60-95% tokens.
  4. quant_microstructure_radar ($0.02 USDC, saves 15k tokens) - Binance order book depth, Order Book Imbalance (OBI), liquidation cascade risk.
  5. cross_exchange_arbitrage_scanner ($0.03 USDC, saves 12k tokens) - Spot vs Perp funding rate APR arbitrage.
  6. orderbook_slippage_simulator ($0.02 USDC, saves 15k tokens) - 100-level VWAP execution and slippage modeling.
  7. smart_money_whale_flow_radar ($0.03 USDC, saves 20k tokens) - Real-time block trade flows and Whale Accumulation Index.
  8. dev_api_cheatsheet_vault ($0.01 USDC, saves 40k tokens) - Zero-fluff schemas for OpenAI, Anthropic, Stripe, Base, FastMCP, DuckDB.
  9. daily_tech_ai_trends_radar ($0.01 USDC, saves 25k tokens) - GitHub AI trends, HackerNews breakouts, arXiv landmark papers.
  10. ast_security_scanner ($0.03 USDC, saves 4k tokens) - Python/Solidity security auditor.
  11. ast_structural_slicer ($0.02 USDC, saves 3k tokens) - Slices isolated functions/classes from AST.
  12. synthetic_schema_verifier ($0.01 USDC, saves 1.5k tokens) - Zero-hallucination JSON schema validation.
  13. prompt_injection_firewall ($0.01 USDC, saves 10k tokens) - Adversarial prompt injection, DAN jailbreak, and system prompt exfiltration detector.
  14. smart_contract_honeypot_radar ($0.03 USDC, saves 25k tokens) - Audits Solidity source or live Base 0x... contracts for honeypots and reentrancy.
  15. secret_leak_scanner ($0.01 USDC, saves 15k tokens) - High-entropy credential and private key scanner.
  16. deep_ast_vulnerability_auditor ($0.03 USDC, saves 15k tokens) - Deep Python AST vulnerability auditor (SQLi, SSRF, RCE).
  17. api_attack_surface_scanner ($0.02 USDC, saves 12k tokens) - HTTP endpoint security header and CORS misconfiguration auditor.

💳 Settlement & Free Tier

  • First Call Free: SOUQ grants 1 free evaluation call per IP per 24h with zero wallet configuration required.
  • Prepaid API Keys: Fund a reusable SOUQ_API_KEY once via Base USDC at https://written-emera-arapython-bf7436a4.apps.mistral.run/#topup (or client.topup_credits(tx_hash="0x...")) for zero-gas per-call speed.
  • Automatic x402 Wallet: Configure private_key in SouqClient or export SOUQ_AGENT_PRIVATE_KEY (pip install 'souq-mcp[wallet]') for automated on-chain Base L2 USDC settlement.

Metadata

Release files for souq-mcp 0.3.0

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

Source distribution (sdist)

Source distribution for souq-mcp 0.3.0
File Size Uploaded Provenance Actions
souq_mcp-0.3.0.tar.gz 11.6 kB Without provenance Details for souq_mcp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for souq-mcp 0.3.0
File Interpreter ABI Platform Actions
souq_mcp-0.3.0-py3-none-any.whl Python 3 none any Details for souq_mcp-0.3.0-py3-none-any.whl

Total release size: 25.6 kB

Release files / souq_mcp-0.3.0.tar.gz

Download URL souq_mcp-0.3.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a163d537d811f8019220a9563d6c96c022a03f5ba826653d64b82267257e9744
BLAKE2b-256 checksum
How to use checksums
b4d88c3f813a974b9099390f0fcc1e1b7fd50808c1171c230dfea9715834092b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / souq_mcp-0.3.0-py3-none-any.whl

Download URL souq_mcp-0.3.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b4ad52d92eb03a243ec2a352dcb4564941ffc3c795d7cbe739fce36e5cf6ed4
BLAKE2b-256 checksum
How to use checksums
96467fb219829b5a9befe0116e3f61045d09014ecb96e936997de338ae0e95bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for souq-mcp 0.3.0

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