Contact Book MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Search and manage your team's knowledge from MCP clients.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server for the Infomaniak Contacts API, enabling listing and searching contacts across address books.24MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for accessing and managing Microsoft 365 Outlook Contacts, enabling AI agents to retrieve and interact with contact data through natural language.86 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Contacts - list, search, and manage contacts.91 npm6MIT
- FlicenseAqualityDmaintenanceA 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-