# Ainecto [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/codelives/ainecto  
**GitHub Stars:** 0  
**npm Downloads (last month):** 72  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ainecto

## Description
Ainecto MCP connector for workspace, document, ERD, diagram, task, and attachment workflows.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ainecto": {
    "command": "npx",
    "args": ["-y","ai-erd@latest"],
    "env": {
      "AINECTO_MCP_ENDPOINT": "",
      "AINECTO_TOKEN": "",
      "AINECTO_ALLOW_CUSTOM_ENDPOINT_TOKEN": "",
      "AI_ERD_ROLE": ""
    }
  }
}
```

**Requires environment variables:** `AINECTO_MCP_ENDPOINT`, `AINECTO_TOKEN`, `AINECTO_ALLOW_CUSTOM_ENDPOINT_TOKEN`, `AI_ERD_ROLE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Ainecto MCP server does

The Ainecto MCP server connects an AI client or command-line workflow to the AI-ERD service. It provides access to projects and generated catalog operations, including document commands, ERD changes, and attachment handling. The package is published under the `ai-erd`, `@ai-erd/mcp`, and `@ai-erd/cli` names, while the executable command is `ai-erd`.

The Ainecto MCP server is suited to repositories where AI sessions need a defined working role: Design, Development, Test, or Validation. That role is associated with an AI-ERD project and is stored in repository configuration. Roles act as workflow guardrails rather than security boundaries.

## How it works

Run `npx -y ai-erd@latest init` from the repository root to choose a role and project. The command can open a browser for sign-in, then writes an MCP entry for Claude Code or Cursor and prints the Codex profile to use. Agents must ask the user to choose the role; they should not select one automatically.

After initialization, CLI commands locate the repository configuration and apply its role automatically. `ai-erd tools list` shows available tools, while `ai-erd tools call <tool> '<json>'` invokes one directly. The MCP tools receive the new role only in a new client session; the CLI can continue using it immediately. A running session does not acquire an MCP server added during that session.

The default production endpoint is `https://ai-erd.com/mcp`. Development is available with `--env dev`, and an explicit endpoint can be supplied with `--endpoint`. Endpoint selection also supports `AINECTO_MCP_ENDPOINT`.

## Setup and configuration

Use `npx -y ai-erd@latest init --role development` for noninteractive setup, or provide a project with `--project <uuid>`. If several projects are available, the command requires a project choice. It must run from the repository root rather than a subdirectory of a Git repository.

Authentication is performed once per machine and environment with `ai-erd auth login`; status and logout are also available. The CLI accepts `AINECTO_TOKEN` for authentication. Custom endpoints require HTTPS, except for localhost loopback URLs. A token is sent to custom endpoints only when `AINECTO_ALLOW_CUSTOM_ENDPOINT_TOKEN=1` is set.

Use `--dry-run` to inspect repository changes and `--undo` to remove files written by initialization. The supported package command can be run through `npx`, or installed globally with npm; only one of the three equivalent packages should be installed globally.

## Tools and capabilities

The Ainecto MCP server exposes its own tool names, such as `list_projects` and `erd_apply_changes`. Generated command paths include `ai-erd documents list`, `ai-erd documents create`, and `ai-erd erd apply-changes`. JSON files or standard input can provide array and object payloads.

Attachment uploads use `ai-erd attachments upload` with a document UUID and one or more local files. The command handles upload-token retrieval, the raw file upload, and attachment registration. Destructive generated commands prompt in human-readable mode and require `--yes` in JSON mode.

## Limitations and notes

Repository roles are not security controls. MCP tools added while a client session is running are unavailable until a new session starts. Claude Code may require permission to execute the external package through `npx`. A client can connect without a repository role, but role-specific behavior begins after initialization and a new session.

The registry compatibility name remains `io.github.codelives/ainecto`, although the current commands and package documentation use `ai-erd` names. Tool names should be used without the client-specific prefixes that some AI clients display.

_Full upstream README: https://allmcps.com/mcp/ainecto/readme_

