This MCP Server provides a personal assistant AI agent built with the Model Context Protocol. It can help manage your calendar, track tasks, handle emails, search the web, and control smart home devices when integrated with MCP clients like Claude for Desktop.
⚠️ IMPORTANT: Python 3.10 or higher is required for the MCP SDK. The server will not work with earlier Python versions.
git clone https://github.com/yourusername/mcp-pa-ai-agent.git
cd mcp-pa-ai-agent
python --version
# Using conda
conda create -n mcp-env python=3.10
conda activate mcp-env
# OR using venv (if Python 3.10+ is installed elsewhere)
python3.10 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
.env
file with your API credentials and settings.Start the MCP server with:
python mcp_server.py
The server will start and listen for MCP client connections.
Install Claude for Desktop
Configure Claude for Desktop to use this MCP server by editing the configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"personal-assistant": {
"command": "/path/to/python",
"args": [
"/absolute/path/to/mcp-pa-ai-agent/mcp_server.py"
]
}
}
}
Note: If you're using a virtual environment, make sure to point to the Python executable in that environment.
get_events
: Retrieve upcoming calendar eventscreate_event
: Schedule a new calendar eventlist_tasks
: View all tasks or filter by statusadd_task
: Create a new taskupdate_task_status
: Mark tasks as pending, in-progress, or completedget_emails
: List recent emails from your inboxread_email
: View the full content of a specific emailsend_email
: Compose and send a new emailweb_search
: Search the web for informationget_weather
: Get current weather informationget_news
: Retrieve latest news articleslist_devices
: View all smart home devicescontrol_device
: Control smart home devices (lights, thermostats, etc.)get_device_state
: Get detailed information about a device's current stateThe server requires various API keys and credentials to access different services:
Refer to the .env.example
file for all configurable options.
If you see an error like:
Error: Python 3.10 or higher is required for the MCP server.
You need to upgrade your Python version or use a virtual environment with Python 3.10+.
If you encounter problems installing the MCP SDK:
ERROR: Could not find a version that satisfies the requirement mcp>=1.2.0
Make sure you're using Python 3.10+ and pip is updated:
pip install --upgrade pip
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "personal-assistant" '{"command":"/path/to/python","args":["/absolute/path/to/mcp-pa-ai-agent/mcp_server.py"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"personal-assistant": {
"command": "/path/to/python",
"args": [
"/absolute/path/to/mcp-pa-ai-agent/mcp_server.py"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"personal-assistant": {
"command": "/path/to/python",
"args": [
"/absolute/path/to/mcp-pa-ai-agent/mcp_server.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect