Anthropic API: New code execution and MCP connectors transform AI agents

Anthropic adds four groundbreaking features to its API that transform AI agents into production-ready applications and fundamentally change the way intelligent systems are developed.

The new features include code execution in Python, Model Context Protocol (MCP) connectors, a Files API and advanced prompt storage. These enhancements allow Claude to perform complex data analysis, connect to over 8,000 external applications and store contextual information for up to 60 minutes.

Code execution transforms Claude into a computational powerhouse that executes Python code in a secure sandbox environment. For example, financial analysts can perform value-at-risk calculations using historical stock data, while Claude iteratively refines calculations based on execution results. Pricing follows a tiered model: 50 free hours per day, then $0.05 per hour per container.

MCP connectors create seamless integration

The MCP connectors standardize tool integration through the Model Context Protocol and provide direct access to over 8,000 applications through partners such as Zapier, Asana and Atlassian. When a project management agent receives a request such as “postpone task X by two weeks due to supplier issues”, Claude connects to Asana’s MCP server, retrieves task dependencies and updates dependent tasks automatically.

This architecture reduces integration complexity by 73 percent compared to custom API implementations. Companies like Thomson Reuters are already using these capabilities to process legal documents 60 percent faster by analyzing 500-page M&A documents across confidentiality and payment clauses.

The best free AI tools

The best free AI tools
View free AI Tools

Ads

Legal Notice: This website ai-rockstars.com participates in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.

Files API enables persistent document management

The Files API introduces document lifecycle management and supports formats such as PDFs (text extraction), CSVs (data analysis) and images (OCR via Claude Vision). A 1 GB file upload is processed in an average of 8.2 seconds, outperforming AWS S3-based approaches by 40 percent.

Extended prompt retention maintains context for 60 minutes (12 times longer than the previous 5-minute TTL) and dramatically reduces the cost of complex workflows. For a customer service agent processing a multi-step refund, the total cost with caching is $0.33 versus $0.45 without caching – a savings of 27 percent.

The most important facts about the update:

    • Code execution: python sandbox with 4GB RAM limit, automatic termination after 15 minutes of inactivity
    • MCP integration: Access to over 8,000 applications through partners such as Zapier, Asana and Atlassian
    • Files API: Support for PDFs, CSVs and images with 8.2 second median latency for 1GB uploads
    • Extended storage: 60-minute prompt storage with up to 27 percent cost savings
    • Security: SOC 2-certified data centers with FIPS 140-2 compliant encryption
    • Pricing: 50 free code execution hours daily, $0.05 per hour thereafter
    • Performance: 73 percent less integration complexity through standardized MCP architecture
    • Use cases: Pharmaceutical research reduces screening time from 14 days to 43 hours

Source: Anthropic