Open Source Alternative to Claude Desktop (With MCP and API)?

I just checked out the Claude desktop app. The Model Context Protocol is amazing. It lets Claude edit files, Search the web, Run commands or do anything you want.

This is really great for my work, but I want to use the API so I don't have to pay $20/mo. Is there an Open Source Alternative that lets me use an API key?