Contact Book MCP Server
Contact Book MCP Server
Ein einfacher Server für das Model Context Protocol (MCP), der ein In-Memory-Kontaktbuch verwaltet. Erstellt mit FastMCP aus dem mcp Python SDK.
Funktionen
Dieser Server stellt vier Tools bereit:
Tool | Beschreibung |
| Fügt dem Kontaktbuch einen neuen Kontakt hinzu. |
| Ruft einen Kontakt über eine exakte Namensübereinstimmung ab. |
| Durchsucht Kontakte nach teilweiser Namensübereinstimmung (ohne Berücksichtigung der Groß-/Kleinschreibung). |
| Aktualisiert Telefonnummer und E-Mail-Adresse eines vorhandenen Kontakts. |
Kontakte werden im Arbeitsspeicher wie folgt gespeichert:
contacts: dict[str, dict] # name -> {"phone": ..., "email": ...}Hinweis: Die Daten werden nur im Arbeitsspeicher gespeichert. Alle Kontakte gehen verloren, wenn der Server neu gestartet wird.
Related MCP server: mcp-outlook-contacts
Anforderungen
Python 3.10+
uv(empfohlen für die Ausführung des Servers)
Installation
Klonen Sie dieses Repository:
git clone <your-repo-url> cd contact_book_server_mcpInstallieren Sie die Abhängigkeiten:
pip install -r requirements.txtOder, wenn Sie
uvverwenden (empfohlen, keine manuelle Installation erforderlich – siehe unten).
Ausführen des Servers
Mit dem MCP Inspector (zum Testen/Entwickeln)
uv run --with mcp mcp dev server.pyDadurch wird der Server gestartet und der MCP Inspector in Ihrem Browser geöffnet, in dem Sie jedes Tool interaktiv testen können.
Eigenständiger Betrieb
python server.pyAnwendungsbeispiel
Einen Kontakt hinzufügen
add_contact(name="Humna Fahad", phone="03001234567", email="humna@test.com") → "Contact 'Humna Fahad' added successfully."Einen Kontakt abrufen
get_contact(name="Humna Fahad") → {"name": "Humna Fahad", "phone": "03001234567", "email": "humna@test.com"}Kontakte suchen
search_contacts(query="Hum") → [{"name": "Humna Fahad", "phone": "03001234567", "email": "humna@test.com"}]Einen Kontakt aktualisieren
update_contact(name="Humna Fahad", phone="03009998888", email="humna@updated.com") → "Contact 'Humna Fahad' updated successfully."
Projektstatus
✅ Alle vier Tools wurden implementiert und über den MCP Inspector getestet.
Mögliche Verbesserungen
Ein
delete_contact-Tool hinzufügen.Ein
list_all_contacts-Tool hinzufügen.Kontakte in einer JSON-Datei oder einer Datenbank speichern, anstatt sie nur im Arbeitsspeicher zu halten.
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.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
MCP server for SuperPhone — contacts, conversations, tags and consent-based text messages.
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server for the Infomaniak Contacts API, enabling listing and searching contacts across address books.291 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.361 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Contacts - list, search, and manage contacts.76 npm5MIT
- 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-