BACK TO CLAUDE SKILLS
◈
mcp_export_to_db
MCP IntegrationMCPDatabase
INSTALLATION
$python -c "exec(open('mcp_export_to_db.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Writes Claude's analysis result for a single coin to the Supabase `coin_analysis` table via the Python Supabase client. Uses `upsert` with the coin identifier as the conflict key, so re-running analysis for the same coin overwrites the previous record rather than creating duplicates.
Keeps database writes minimal — only the `coin`, `signal`, and computed score fields are written per call, ensuring the operation is fast enough to run inside a high-frequency scan loop. Extend the payload dictionary to store additional fields like RSI value or EMA cross state for richer dashboarding.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryMCP Integration
ComplexityIntermediate
LanguagePython 3.10+
TagsMCP, Database
[ ASK CLAUDE ]
Ask AI about this skill before installing it.