# Espocrm — how to use (mcp.ai)

Connect your Espocrm account and use 2 tools for CRM straight from your AI agent. Connect with your own API key. EspoCRM is an open-source web application that allows businesses to manage their customer relationships effectively.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_espocrm?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `espocrm_get_app_user`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/espocrm`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/espocrm/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/espocrm/get/app/user` — Tool to retrieve current user data including token, ACL, and preferences. Use after successful authentication to fetch session-specific profile.
- `POST https://api.mcp.ai/api/espocrm/get/metadata` — Test connectivity to the Docparser API by calling the ping endpoint. Use this tool to verify that your API credentials are valid and the service is reachable. Returns a simple 'pong' message on succes

## Example prompts
- "What can I do in Espocrm?"
- "Show me a summary of my Espocrm account"

## More
- Page: https://mcp.ai/espocrm
- Agent spec (llms.txt): https://mcp.ai/espocrm/llms.txt
- Postman collection: https://mcp.ai/espocrm/postman.json
