Skip to content

Hosted MCP Quick Reference

Quick reference for using ERA Agent’s hosted/cloud MCP server with Claude Desktop.

Claude Desktop Config
{
"mcpServers": {
"era-agent": {
"url": "https://anewera.dev/mcp/v1"
}
}
}

Config Locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Then: Restart Claude Desktop (Cmd+Q, not just close)

ToolUse ForExample
era_pythonPython scriptsFizzBuzz, data analysis
era_nodeJavaScript/Node.jsArray operations, algorithms
era_typescriptTypeScript codeType-safe execution
era_denoDeno runtimeModern JS/TS with Deno APIs
era_shellSystem commandspip install, npm install
ToolUse ForExample
era_create_sessionStart persistent environmentCreate Python session
era_run_in_sessionRun code in sessionExecute with state
era_list_sessionsView all sessionsCheck active sessions
era_get_sessionGet session detailsCheck session status
era_update_sessionUpdate session configChange timeout, network access
era_delete_sessionClean up sessionRemove unused session
ToolUse ForExample
era_upload_fileAdd files to sessionUpload CSV, config
era_read_fileRead session filesView results
era_list_filesList session filesCheck workspace
Run this Python code:
print("Hello World")
print([x**2 for x in range(10)])
1. Create a Python session
2. In that session, run: pip install pandas requests
3. Then run your code using those packages
Create a Python session, install requests and beautifulsoup4,
then scrape the top stories from Hacker News
Test this sorting algorithm in both Python and JavaScript
1. Create a Python session
2. Upload data.csv with [your data]
3. Install pandas
4. Analyze the data and save results
5. Read the results file
1. Create a session for ML training
2. Update the session to extend timeout to 10 minutes
3. Run training code that takes 8 minutes
4. Check results
FeatureHosted (Cloud)Local (Self-Hosted)
SetupJust add URL ✅Need Docker/Firecracker
NetworkAlways enabled ✅Disabled by default
ConfigURL onlyBinary path + env vars
StateCloud (Durable Objects)Local filesystem
ScalingAutomatic ✅Manual
MaintenanceZero ✅You manage it
Internet AccessBuilt-in ✅Must enable per session
  • F-strings: print(f'{x}: {y}')
  • Multi-line code with indentation
  • Special characters in strings
  • Complex nested structures
  • Internet access (enabled by default!)
  • No State Between Tools: Use sessions for stateful work
  • Packages Not Installed: Use era_shell to install first
  • File Paths: Use relative paths in sessions, upload files first
ResourceDefaultNotes
CPU1 corePer execution
Memory256 MiBConfigurable
Timeout30 secConfigurable
NetworkEnabledAlways available
StorageCloud (R2)Persistent across requests
ProblemSolution
Tools not showingRestart Claude Desktop (Cmd+Q)
Execution failsCheck package dependencies
Package not foundUse era_shell to install
File not foundUpload file first with era_upload_file
Network errorShould work automatically (enabled by default)

Use Language Tools (era_python, etc.):

  • Quick one-off scripts
  • Simple calculations
  • Testing snippets
  • Independent executions

Use Sessions:

  • Installing packages
  • Multi-step workflows
  • Stateful computations
  • File processing pipelines

Use era_shell:

  • Package installation (pip, npm)
  • System commands (ls, mkdir)
  • Environment setup
  • NOT for running code (use language tools)
  1. Network Included: No need to enable - perfect for web scraping!
  2. Cloud State: Sessions persist across requests
  3. Reuse Sessions: Create once, use multiple times
  4. Install Once: Install packages at session start
Create a Python session, install pandas and matplotlib,
analyze this CSV data, create a visualization, and save it
Use era_python to fetch data from this API, process it,
and display the results (network access included!)
Implement binary search in Python with logging,
test it with various inputs, then implement in JavaScript and compare
Create a Node.js session, install express,
create a simple REST API, and test it

Zero Infrastructure: No Docker or Firecracker to manage ✅ Global Edge: Cloudflare’s network for low latency ✅ Auto Scaling: Handles load automatically ✅ Persistent State: Sessions survive across requests ✅ Cloud Storage: Files stored in R2 ✅ Always Online: No local agent to start/stop ✅ Network Enabled: Internet access built-in