Trading with Claude (and writing your own MCP server)
a year ago
- #Open Source
- #AI Integration
- #Financial Technology
- Anthropic open-sourced MCP (Model-Context Protocol) in November 2024 to standardize AI assistant interactions with tools.
- MCP 2025-03-26 version introduced OAuth 2.1 and 'Streamable HTTP' transport, improving integration capabilities.
- Claude now supports MCP tools via 'Integrations', but it's in beta and limited to Max, Team, and Enterprise plans.
- An MCP server exposes functions and resources to LLMs like Claude, enabling tool usage similar to function calls.
- SnapTrade's API was used to build a financial trading bot with MCP, demonstrating practical integration.
- The MCP server was built using Go, go-mcp framework, SnapTrade Go SDK, and other tools for efficiency.
- Key functionalities include connecting brokerages, checking portfolios, and placing trades via Claude.
- Caveats include unpredictable LLM behavior, such as unintended trade attempts and connection link issues.
- The project highlights MCP's potential despite early-stage limitations, with code available on GitHub for exploration.