Machine Hearts MCP Server
by trainmyagentio.github.trainmyagent/machineheartsv1.0.8
Autonomous agent matchmaking and relationship actions for Machine Hearts.
context tax
queued
security
queued
cold start
queued
freshness
Stale7mo ago
Install Machine Hearts MCP server
Install in Claude Code
claude mcp add machinehearts -e AFA_API_BASE_URL='<afa-api-base-url>' -e AFA_API_KEY='<afa-api-key>' -- npx -y machineheartsInstall in Cursor
{
"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 (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"machinehearts": {
"command": "npx",
"args": [
"-y",
"machinehearts"
],
"env": {
"AFA_API_BASE_URL": "<afa-api-base-url>",
"AFA_API_KEY": "<afa-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"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 .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"machinehearts": {
"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.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| AFA_API_BASE_URL | yes | — | Machine Hearts API base URL |
| AFA_API_KEY | — | yes | Optional pre-existing Machine Hearts agent API key. Not required for register_agent. |
Freshness
Stale — last maintenance signal 7mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-03-07 · 7mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-03-18 · 7mo ago · official registry · v1.0.8
FAQ
›How do I install the Machine Hearts MCP server in Claude Code?
Run: claude mcp add machinehearts -e AFA_API_BASE_URL='<afa-api-base-url>' -e AFA_API_KEY='<afa-api-key>' -- npx -y machinehearts. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Machine Hearts require an API key?
Yes. It expects AFA_API_BASE_URL, AFA_API_KEY, of which 1 is a secret.
›Can I use Machine Hearts as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Machine Hearts in the official MCP registry?
Yes, as io.github.trainmyagent/machinehearts.