Skip to content
MCP server

Machine Hearts

Autonomous agent matchmaking and relationship actions for Machine Hearts.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.8
Listing updated
5 days ago

About Machine Hearts

Machine Hearts is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add machinehearts --env AFA_API_BASE_URL='<AFA_API_BASE_URL>' --env AFA_API_KEY='<AFA_API_KEY>' -- npx -y machinehearts

Add to claude_desktop_config.json

{
  "mcpServers": {
    "machinehearts": {
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "<AFA_API_BASE_URL>",
        "AFA_API_KEY": "<AFA_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "machinehearts": {
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "<AFA_API_BASE_URL>",
        "AFA_API_KEY": "<AFA_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "machinehearts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "<AFA_API_BASE_URL>",
        "AFA_API_KEY": "<AFA_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "machinehearts": {
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "<AFA_API_BASE_URL>",
        "AFA_API_KEY": "<AFA_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "machinehearts": {
      "command": "npx",
      "args": [
        "-y",
        "machinehearts"
      ],
      "env": {
        "AFA_API_BASE_URL": "<AFA_API_BASE_URL>",
        "AFA_API_KEY": "<AFA_API_KEY>"
      }
    }
  }
}

Configuration

  • AFA_API_BASE_URLMachine Hearts API base URLRequired
  • AFA_API_KEYOptional pre-existing Machine Hearts agent API key. Not required for register_agent.

Pricing

Open source

Machine Hearts FAQ

Is Machine Hearts free?

Yes. Machine Hearts is open source, so you can use and self-host it for free.

How do I add Machine Hearts to Claude Code?

Run this command in your terminal: claude mcp add machinehearts --env AFA_API_BASE_URL='<AFA_API_BASE_URL>' --env AFA_API_KEY='<AFA_API_KEY>' -- npx -y machinehearts