simetrik-inc-public/a4e-mcp-server
If you are the rightful owner of a4e-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The A4E MCP Server allows creators to build AI agents using natural language directly within their IDE.
A4E MCP Server
The A4E MCP Server enables creators to build agents using natural language directly in their IDE (Cursor, Claude Desktop).
Installation
Prerequisites
- Python 3.10+
- uv (recommended) or
pip - ngrok Account: Required for "Dev Mode" to share your local agent with the Hub.
- Sign up at ngrok.com
- Get your Authtoken from the dashboard.
Setup
- Navigate to this directory:
cd a4e-mcp-server - Install dependencies:
uv sync - Configure ngrok (One-time setup):
Or pass it later to
ngrok config add-authtoken <YOUR_TOKEN>dev_start.
Usage in Cursor
-
Go to Cursor Settings > Features > MCP.
-
Click + Add New MCP Server.
-
Enter the following:
- Name:
a4e - Type:
command - Command:
uv - Args:
run a4e/server.py(Absolute path recommended)
Example Absolute Path Config:
Command: /Users/yourname/.cargo/bin/uv Args: run /absolute/path/to/a4e-mcp-server/a4e/server.pyExample mcp.json configuration:
{ "mcpServers": { "a4e": { "command": "uv", "args": ["run", "--directory", "${workspaceFolder}", "a4e/server.py"] } } } - Name:
Concepts
What is an A4E Agent?
An A4E Agent is a specialized AI assistant tailored for a specific domain or task (e.g., a Nutrition Coach or Daily Planner). It combines natural language understanding with custom capabilities defined by Tools and Views.
Tools
Tools are Python functions that give the agent the ability to perform actions or retrieve information.
- Defined in
tools/*.pyusing the@tooldecorator. - The agent decides when to call a tool based on the user's request.
- How it works: When you ask "Calculate BMI", the agent looks for a tool capable of that calculation, executes the Python code, and returns the result.
Views
Views are React components that provide a rich graphical interface for the agent's responses.
- Defined in
views/*/view.tsx. - Used to display structured data (like charts, lists, or forms) instead of just text.
- How it works: If a tool returns complex data (like a meal plan), the agent can choose to render a specific view (e.g.,
MealPlanView) to show that data interactively.
Workflow
-
Create an Agent: Open a new folder in Cursor (e.g.,
my-agents/). Ask Cursor: "Create a nutrition coach agent" -> This creates the foldernutrition-coachwithagent.py,metadata.json, etc. -
Add Tools: Ask: "Add a tool to calculate BMI" -> Creates
tools/calculate_bmi.py. -
Add Views: Ask: "Add a view to show the BMI result" -> Creates
views/bmi_result/view.tsx. -
Auto-Generate Schemas: The server automatically generates schemas from your Python code and React props when you run
generate_schemas(or when the file watcher triggers, if enabled).
Where are agents created?
Agents are created in your current working directory.
- If you want to add an agent to the
agent-store, open that folder in Cursor first. - If you are testing, just create a temporary folder.
Integration
- Local Dev:
dev_start- Starts local server and ngrok tunnel. - Deployment:
deploy(Mocked) - Will upload to S3 and register with the Hub.
Troubleshooting
"pyngrok not installed"
If dev_start fails, it means the MCP server environment is missing dependencies.
- Run
check_environmenttool to diagnose. - Ensure you ran
uv syncin thea4e-mcp-serverdirectory. - Restart your IDE/MCP Client to reload the environment.
"ngrok command not found"
If you don't want to use pyngrok, install the ngrok CLI manually:
- Mac:
brew install ngrok/ngrok/ngrok - Windows:
choco install ngrok