Dex MCP Server
Provides AI agents with comprehensive contact relationship management (CRM) capabilities through the Dex API, enabling management of contacts, notes, and reminders.
README
Dex MCP Server
v1.0.0 is now released!
- See RELEASE-NOTES.md and GitHub Releases for highlights and upgrade info.
- How to upgrade:
- Pull the latest code:
git pull --rebase origin main- Ensure your
.envfile is present and contains a validDEX_API_KEY.- Use the
kill-dex-mcp-server.shscript before agent startup if needed.- See
copilot-instructions.mdfor agent/CLI usage and best practices.
A Model Context Protocol (MCP) server that provides AI agents with comprehensive contact relationship management capabilities through the Dex API.
Features
🚀 Contact Management
- Create, Read, Update, Delete contacts with full details
- Search contacts by name, email, or company
- Comprehensive contact fields: name, company, job title, description, emails, phone numbers
📝 Note Management
- Contact-linked notes stored as timeline items
- Create, update, delete notes for any contact
- Search notes by content across all contacts
- Pagination support for large note collections
⏰ Reminder Management
- Set reminders linked to specific contacts
- Complete, update, delete reminders as needed
- Search reminders by text content
- Recurrence support for recurring follow-ups
- Due date tracking with proper date formatting
Installation
Prerequisites
- Node.js 18 or later
- Dex API account and API key
Setup
- Clone this repository:
git clone https://github.com/alpabon73/dex-mcp-server.git
cd dex-mcp-server
- Install dependencies:
npm install
- Configure your Dex API key in
src/index.ts:
const API_KEY = 'your-dex-api-key-here';
- Build the server:
npm run build
Environment Variables
This project requires a Dex API key. Never commit your real API key to a public repository.
- Copy
.env.exampleto.env:cp .env.example .env - Edit
.envand set your real Dex API key:DEX_API_KEY=your-dex-api-key-here - The server will not start unless
DEX_API_KEYis set in your environment or.envfile.
.env is already in .gitignore and will never be committed.
Usage
Standalone Usage
npm start
With AnythingLLM
Add to your MCP server configuration:
{
"servers": {
"dex-mcp": {
"command": "/usr/local/bin/node",
"args": ["/path/to/dex-mcp-server/dist/index.js"],
"env": {}
}
}
}
Available Tools
Contact Tools (6)
get_contacts- Retrieve contacts with paginationget_contact_by_id- Get specific contact detailssearch_contacts- Search by name/company/emailcreate_contact- Add new contactsupdate_contact- Modify existing contactsdelete_contact- Remove contacts
Note Tools (6)
get_notes_by_contact- Get all notes for a contactget_all_notes- Retrieve all notes with paginationsearch_notes- Search notes by contentcreate_note- Add notes to contactsupdate_note- Modify existing notesdelete_note- Remove notes
Reminder Tools (6)
get_reminders_by_contact- Get contact remindersget_all_reminders- Retrieve all reminders with paginationsearch_reminders- Search reminders by textcreate_reminder- Set new remindersupdate_reminder- Modify existing reminderscomplete_reminder- Mark reminders as donedelete_reminder- Remove reminders
Allowed Meeting Types for Notes
When creating a note, you may specify the meeting type using either the display name or the Dex API enum value. The following table shows the accepted values:
| Display Name | Dex API Enum Value |
|---|---|
| Note | note |
| Call | call |
| Text/Messaging | text_messaging |
| Skype/Teams | skype_teams |
| Slack | slack |
| Coffee | coffee |
| Networking | networking |
| Party/Social | party_social |
| Other | other |
| Meal | meal |
| Meeting | meeting |
| Custom | custom |
You may use any of the above display names (case-insensitive, spaces and slashes allowed) or the exact enum value. The system will automatically map your input to the correct Dex API value.
Example Use Cases
- "Add John Smith from TechCorp as a new contact"
- "Set a reminder to follow up with Sarah next week"
- "Search for all notes about the ABC project"
- "Update Mike's job title to Senior Engineer"
- "Show me all pending reminders for this month"
- "Create a note about today's meeting with the client"
Development
Scripts
npm run build- Compile TypeScriptnpm run dev- Run with ts-node for developmentnpm run watch- Watch mode compilationnpm start- Run compiled server
Architecture
- TypeScript for type safety
- Zod for schema validation
- Axios for HTTP requests to Dex API
- MCP SDK for protocol implementation
API Integration
This server integrates with the Dex API using:
- GraphQL endpoint:
https://api.getdex.com/v1/graphql - Timeline items for note storage
- Reminders table with contact junction
- Proper pagination and search capabilities
Code Quality & CI
This project uses TypeScript for type safety and ESLint for code linting. All code is automatically checked for type errors and lint issues in CI (see .github/workflows/ci.yml).
- Run type checks locally:
npm run build # or npx tsc --noEmit - Run linter locally:
npm run lint
All pull requests must pass CI checks before merging.
Issue & PR Templates
- Bug reports and feature requests use GitHub issue templates for consistency.
- All pull requests use a PR template to ensure quality and documentation.
Security & Secrets
- Never commit secrets or API keys.
.envis gitignored and secrets are loaded from environment variables. - If a secret is ever committed, follow the repo's history-scrubbing protocol (see
scrub-git-history.sh).
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run
npm run lintandnpm run buildto check code quality - Submit a pull request
License
MIT License - see LICENSE file for details
Support
For issues related to:
- Dex API: Check Dex documentation
- MCP Protocol: See MCP specification
- This server: Open an issue in this repository
How to report issues or contribute
- Found a bug or have a feature request? Open an issue
- Want to contribute? See CONTRIBUTING.md for guidelines.
- Security concerns? See SECURITY.md for responsible disclosure.
- For release notes and upgrade info, see RELEASE-NOTES.md and CHANGELOG.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。