Contact Book MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Contact Book MCP ServerAdd John Doe with phone 555-1234 and email john@example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Contact Book MCP Server
A simple Model Context Protocol (MCP) server that manages an in-memory contact book. Built with FastMCP from the mcp Python SDK.
Features
This server exposes four tools:
Tool | Description |
| Adds a new contact to the contact book. |
| Retrieves a contact by exact name match. |
| Searches contacts by partial (case-insensitive) name match. |
| Updates an existing contact's phone and email. |
Contacts are stored in memory as:
contacts: dict[str, dict] # name -> {"phone": ..., "email": ...}Note: Data is stored in memory only. All contacts are lost when the server restarts.
Related MCP server: mcp-outlook-contacts
Requirements
Python 3.10+
uv(recommended for running the server)
Installation
Clone this repository:
git clone <your-repo-url> cd contact_book_server_mcpInstall dependencies:
pip install -r requirements.txtOr, if using
uv(recommended, no manual install needed — see below).
Running the Server
With MCP Inspector (for testing/development)
uv run --with mcp mcp dev server.pyThis starts the server and opens the MCP Inspector in your browser, where you can test each tool interactively.
Standalone
python server.pyExample Usage
Add a contact
add_contact(name="Humna Fahad", phone="03001234567", email="humna@test.com") → "Contact 'Humna Fahad' added successfully."Get a contact
get_contact(name="Humna Fahad") → {"name": "Humna Fahad", "phone": "03001234567", "email": "humna@test.com"}Search contacts
search_contacts(query="Hum") → [{"name": "Humna Fahad", "phone": "03001234567", "email": "humna@test.com"}]Update a contact
update_contact(name="Humna Fahad", phone="03009998888", email="humna@updated.com") → "Contact 'Humna Fahad' updated successfully."
Project Status
✅ All four tools implemented and tested via MCP Inspector.
Possible Improvements
Add a
delete_contacttool.Add a
list_all_contactstool.Persist contacts to a JSON file or database instead of in-memory storage.
This server cannot be deployed
Maintenance
Related MCP Connectors
- KogniteOAuthdev.kognite
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server for the Infomaniak Contacts API, enabling listing and searching contacts across address books.12 npm3MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for accessing and managing Microsoft 365 Outlook Contacts, enabling AI agents to retrieve and interact with contact data through natural language.190 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Contacts - list, search, and manage contacts.38 npm3MIT
- FlicenseAqualityBmaintenanceA local MCP server that maintains a persona profile (contact library) for AI assistants, allowing them to create, search, retrieve, supplement, and correct information about people mentioned in conversations via tools like search_profiles, get_profile, create_profile, update_profile, add_facts, update_fact, and delete_fact.8-