Model Context Protocol

Connect CoreX to your AI agent

The CoreX MCP server exposes your CRM & ERP — contacts, CRM deals, calendar, tasks, sales, accounting, HR and more — as 29 MCP tools any agent can call. Connect over Streamable HTTP in under a minute, authenticated as your own CoreX user.

Quick connectBrowse the tools
Copies one instruction block with the endpoint, auth, config, and Skill — paste it into any AI agent to set up end to end.

Where

Endpoints

The server speaks Streamable HTTP (the modern MCP transport). Use the environment that matches your account.

ProductionLive
https://core.apexaion.ai/mcp
StagingPreview
https://core-staging.apexaion.ai/mcp

Who

Authentication

Connect securely as your own CoreX user. OAuth keeps your password in the browser and gives your agent only the access you approve.

Recommended

OAuth 2.1

Add the MCP endpoint to NGIN360 or another OAuth-capable client. CoreX guides you through workspace sign-in and consent.

  1. 1Add the CoreX endpoint
  2. 2Sign in in your browser
  3. 3Review and approve access
Legacy clients without OAuth

Use credential headers only in a trusted client that cannot use OAuth. Store credentials securely in that client.

Legacy headerstext
x-corex-slug:      your-company-slug
x-corex-email:     you@company.com
x-corex-password:  your-password
x-corex-branch-id: <optional — override the default branch>

Once authenticated, the legacy login tool can change the session workspace.

Legacy tool calljson
corex_login {
  "slug": "your-company-slug",
  "email": "you@company.com",
  "password": "your-password"
}

How

Quick connect

Add the endpoint with the configuration below, then choose OAuth and follow the browser sign-in prompts.

Register CoreX as an HTTP MCP server, then complete OAuth sign-in in your browser.

Productionbash
claude mcp add --transport http corex https://core.apexaion.ai/mcp
Stagingbash
claude mcp add --transport http corex-staging https://core-staging.apexaion.ai/mcp

Bonus

Install the CoreX Skill

The CoreX Skill teaches Claude how and when to use these tools — which tool fits which intent, the field names that matter, and the gotchas. Save it at .claude/skills/corex/SKILL.md in your project, then reconnect.

.claude/skills/corex/SKILL.mdmarkdown
---
name: corex
description: Operate the CoreX CRM/ERP via its MCP tools — use when the user wants to check CRM/deals/pipeline status, move or convert a lead, book a meeting or calendar event, create or look up a contact, pull sales/quotations/invoices, or manage tasks.
---

# CoreX MCP Skill

CoreX is a multi-tenant CRM/ERP platform (sales pipeline, contacts, calendar,
tasks, projects, accounting, HR/payroll, inventory, and more). This skill drives
the **CoreX MCP server**, which exposes the tenant REST API as agent tools. Use it
whenever the user asks to read or change data in CoreX.

The hosted server is reached over **Streamable HTTP** at `/mcp` — staging
`https://core-staging.apexaion.ai/mcp`, production `https://core.apexaion.ai/mcp`.

## Prerequisite: auth is per connection

Each caller authenticates as **their own** CoreX user, scoped to their MCP
session — there is no shared account.

- **OAuth 2.1 (preferred):** register the HTTP endpoint in an OAuth-capable
  client, sign in to CoreX in your browser, and approve the requested access.
  The client uses PKCE and sends the resulting bearer token on requests.
- **Legacy headers:** only for clients without OAuth support, use
  `x-corex-slug`, `x-corex-email`, and `x-corex-password` on initialize.
  Never ask the user to paste a password into an agent conversation.

## Choosing a tool

1. **Curated typed tools** for common modules (Contacts, CRM, Calendar, Tasks).
2. **Generic CRUD** for any other module: `corex_list`, `corex_get`,
   `corex_create`, `corex_update`, `corex_delete` — pass the resource path
   segment (e.g. "invoices", "quotations", "sales-orders").
3. **`corex_request`** only for special actions / analytics.

Use `corex_list_resources` to discover the full catalog.

## Conventions & gotchas

- List responses return `{ data, pagination }`; delete returns `{ deleted: true }`.
- If OAuth returns 401, refresh authorization or sign in again.
- 402 means the tenant's subscription is locked — surface to the user.
- Branch context for some CRM writes is sent automatically from login.

What

Tool catalog

29 tools, grouped by module. Curated tools carry real field names and validation; generic CRUD reaches any other resource by path.

Discovery

2

Find your way around a tenant.

  • corex_list_resources

    List every resource the API exposes — name, path, module, notable actions.

  • corex_whoami

    Current identity: the signed-in user, company, and active branch.

Generic CRUD

6

Reach any module by resource path.

  • corex_list

    List records for a resource with filters, search, sort, and pagination.

  • corex_get

    Fetch a single record by id.

  • corex_create

    Create a record from a JSON body.

  • corex_update

    Patch a record by id with only the fields to change.

  • corex_delete

    Delete a record by id.

  • corex_request

    Raw API call for special actions / analytics CRUD can’t express.

Authentication

1

Legacy authentication for clients without OAuth.

  • corex_login

    Log in to a tenant with slug + email + password (optional branchId).

Contacts

4

People and companies in your CRM.

  • corex_contacts_list

    List contacts with search, status, and type filters.

  • corex_contacts_get

    Fetch a single contact by id.

  • corex_contacts_create

    Create a contact (name required).

  • corex_contacts_update

    Update a contact by id.

CRM · leads & deals

7

Your sales pipeline.

  • corex_crm_list

    List CRM records with search, status, and stage filters.

  • corex_crm_get

    Fetch a single lead/deal by id.

  • corex_crm_create

    Create a lead/deal (name + phone required).

  • corex_crm_update

    Update a lead/deal by id.

  • corex_crm_update_status

    Transition a record to a new status (lostReason when marking lost).

  • corex_crm_kanban

    Get CRM records grouped by stage for the kanban board.

  • corex_crm_convert

    Convert a lead/deal into a contact.

Calendar

5

Meetings and events.

  • corex_calendar_events_list

    List events, optionally within a start/end window.

  • corex_calendar_event_get

    Fetch a single event by id.

  • corex_calendar_event_create

    Create an event (title, startDate, endDate required).

  • corex_calendar_event_update

    Reschedule or edit an event by id.

  • corex_calendar_event_delete

    Delete an event by id.

Tasks

4

Work items across spaces and lists.

  • corex_tasks_list

    List tasks, scoped by list/space and filtered by search.

  • corex_task_get

    Fetch a single task by id.

  • corex_task_create

    Create a task (title, listId, spaceId required).

  • corex_task_update

    Update a task by id.

Help

Troubleshooting

401 Unauthorized

Complete OAuth sign-in again if your connection has expired or been revoked. Approve the required access in CoreX.

402 Payment Required

Your tenant’s subscription is locked. Resolve billing in CoreX — the agent can’t retry past this.

No tools / “not authenticated”

Finish browser sign-in and consent, then reconnect. Idle sessions expire after 30 minutes. Confirm the endpoint matches your workspace environment — staging or production.