Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Heartcode

MCP server by p32929 Verified · npm:heartcode

HeartCode is a terminal coding agent for any OpenAI-compatible model, including small and local ones. When one model fails or hits a rate limit, the next model in your list takes over. It has zero npm dependencies and is built for developers who want to run their own models.

  • Score 83
  • 0 stars
  • 1.5k a week
  • MIT
  • Updated

Install Heartcode

Built from the published package, never by AI.

claude mcp add heartcode -- npx -y heartcode

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Heartcode in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the heartcode block.

About

HeartCode is a coding agent that runs in your terminal. It works with any OpenAI-compatible model, including free, paid and local models, and can use several at once. You list your models in order. When one hits a rate limit, goes down or fails, the next one answers and the work continues. It can hand parts of a task to helper models and asks another of your models to check the result before it says done. Setup is done on a browser settings page opened with /settings. The project has zero dependencies and needs only Node.js 22 or newer. Optional add-ons include a design skill and Chrome DevTools MCP, which lets it check web pages in a real browser. It is aimed at developers who want a coding CLI that runs on their own models.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Model fallbackMoves to your next model when one hits a rate limit, goes down or fails.
  • Context handoffMoves a long conversation to one of your models with more room, instead of summarizing it away.
  • Helper modelsLets your main model hand parts of a task to helpers, or run separate parts at the same time.
  • Per-project memorySaves read web pages and useful notes in .heartcode/ folders inside each project.
  • Page checkheartcode page index.html checks a page in a real browser and saves desktop and phone screenshots.
  • Headless runsheart -p runs one task without the screen, for other tools and AI agents.

What you need

  • Node.js 22 or newer
  • An OpenAI-compatible model provider with an API key
  • Google Chrome for Chrome DevTools MCP
  • macOS Accessibility and Screen Recording access for Computer use MCP on macOS
  • A Telegram bot token for optional notifications

Try asking

  • Fix the failing tests in this project and tell me what changed.
  • Check index.html in a real browser and save desktop and phone screenshots.
  • Start the dev server in the background and show me its logs.

Good to know

  • Chrome DevTools MCP needs Google Chrome installed.
  • Computer use MCP can click anything on the screen, so switch it off when it is not needed.
  • Logs are all off by default and older logs are deleted after 3 days.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Heartcode

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Heartcode: common questions

Does HeartCode work with local models?

Yes. The source says it works with any OpenAI-compatible model, local ones included. Models that cannot call tools are guided one simple question at a time.

Does HeartCode have npm dependencies?

The source says it has zero dependencies. It needs only Node.js 22 or newer and HeartCode's own code.

Can other AI agents run HeartCode?

Yes. heart -p runs one task without the screen, for other tools and AI agents, similar to claude -p.

How do I install Heartcode?

In Claude Code run claude mcp add heartcode -- npx -y heartcode. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Heartcode the official server?

Heartcode is published by npm:heartcode from its verified domain in the official MCP Registry.

Is Heartcode free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Heartcode safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Heartcode?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Heartcode work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Heartcode Install

Add to stack

Loading.