npm @kozmos-tech/contactapistdioMITupdated 1mo ago
An open-source API to save contacts. Send a POST with an email and any other JSON fields you want, and they get saved as-is. Manage them with simple CRUD.
Was kannst du mit contactapi machen?
contactapi
An open-source API to save contacts. Send a POST with an email and any other
JSON fields you want, and they get saved as-is. Manage them with simple CRUD.
Built with Hono and deployed on Vercel.
API overview
The base URL is https://contactapi.dev and every request carries your API key
as a Bearer token:
Authorization: Bearer YOUR_KEY
| Method | Path | Key | Description |
|---|---|---|---|
POST |
/v1/contacts |
secret or publishable | Create (or upsert) a contact by email |
GET |
/v1/contacts |
secret | List contacts, paginated |
GET |
/v1/contacts/:id |
secret | Fetch a single contact |
PATCH |
/v1/contacts/:id |
secret | Update a contact |
DELETE |
/v1/contacts/:id |
secret | Delete a contact |
Contacts are keyed by email — creating one whose email already exists updates it
in place rather than duplicating it. Full reference lives on the landing page and
in /llms.txt.
There are two kinds of key:
ck_secret_…— secret key, for your backend. Full access to every endpoint.ck_pub_…— publishable key, for the browser. Can only create contacts and is locked to your domains.
MCP server
AI clients (Claude Desktop, claude.ai custom connectors, Cursor, the MCP Inspector) can manage your contacts through an MCP server at:
https://contactapi.dev/mcp
Auth is OAuth 2.1 with dynamic client registration — point a client at the
URL and it discovers the authorization server, registers itself, and sends you to
log in and approve access; no API key to copy. The server exposes five tools that
mirror the REST API: list_contacts, get_contact, create_contact
(upsert-by-email), update_contact, and delete_contact. Everything is scoped to
the account you log in as.
The OAuth provider is Better Auth's mcp plugin
(src/auth.ts); the tools and endpoint wiring live in
src/mcp/server.ts and src/index.ts.
Development
Prerequisites: Vercel CLI installed globally.
npm install
vc dev
open http://localhost:3000
Build
npm install
vc build
Deploy
npm install
vc deploy
License
Installation
contactapi zu deinem Client hinzufügen. Wähl den, den du nutzt.
claude mcp add contactapi -- npx -y @kozmos-tech/contactapicodex mcp add contactapi -- npx -y @kozmos-tech/contactapiamp mcp add contactapi -- npx -y @kozmos-tech/contactapi{
"mcpServers": {
"contactapi": {
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"contactapi": {
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"contactapi","command":"npx","args":["-y","@kozmos-tech/contactapi"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"contactapi": {
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"contactapi": {
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"contactapi": {
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"contactapi": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"contactapi": {
"command": {
"path": "npx",
"args": [
"-y",
"@kozmos-tech/contactapi"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @kozmos-tech/contactapiRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Unvollständig
- Dokumentation17/25
- Pflege16/25
- Vertrauen16/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 47 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 0.1.1Aktuell | 6. Juli 2026 |
| 0.1.0 | 6. Juli 2026 |