MCP Guide • 5 min read

How to Connect Claude Code to fanTask via MCP: Step-by-Step Guide

A practical step-by-step tutorial on connecting Anthropic Claude Code to fanTask using Model Context Protocol (MCP). Learn how to configure your MCP server, mint your personal access token, and give your AI agent durable memory.

Publicat de fanTask Engineering
Model Context Protocol (MCP)

What is the Model Context Protocol (MCP) and why does it matter?

The Model Context Protocol (MCP) is an open standard developed to allow Large Language Models and AI coding assistants to securely interact with external tools, databases, and services. Instead of confining an agent to the local files inside its immediate directory or relying on copy-pasting terminal output between separate browser tabs, MCP provides a structured, native protocol over encrypted JSON-RPC. This enables AI tools to query live data, execute specialized operations, and update external systems directly during their problem-solving loop.

Why connect Claude Code to fanTask?

Claude Code is a fast, capable terminal-based coding assistant. However, like all state-of-the-art LLMs, it operates under the strict constraints of finite context windows. When long terminal sessions get compacted, or when you start a fresh session tomorrow, Claude loses all recollection of yesterday's architectural decisions, test conventions, and debugging breakthroughs.

fanTask acts as a durable external project ledger and memory layer for autonomous coding agents. By connecting Claude Code to fanTask via MCP, your agent gains persistent superpowers:

  • It reads your living project conventions and architectural boundaries (via the persistent AI Context field) before writing a single line of code.
  • It searches past task histories and comments to inspect how strange edge cases and runtime bugs were solved previously.
  • It picks up, updates, and documents tasks directly on a shared task board that human engineers and AI agents work from simultaneously.

Step 1: Get your ready-to-paste setup prompt from fanTask

If you just created your account, fanTask automatically shows you a "Connect your AI to fanTask" modal right on your workspace page, with a few options (Claude, Gemini CLI / Antigravity, ChatGPT, Gemini App, Other). Pick Claude — the platform mints a personal access token behind the scenes and hands you a complete, ready-to-paste prompt for Claude Code or Claude Desktop, token already included.

If you closed that modal, or you're on an existing account, you can pick this back up anytime from your workspace menu: Workspace → MCP / AI. It offers the same options and the same ready-to-paste prompt, generated with your current token.

Step 2: Register the fanTask server in Claude Code

The simplest path is to paste the Step 1 prompt directly into a Claude Code conversation — it already contains the registration command with your token filled in, and Claude runs it for you. If you'd rather run it yourself in a terminal, this is the exact command:

claude mcp add fantask --transport http https://api.fantask.ro/mcp --header "Authorization: Bearer YOUR_FANTASK_API_TOKEN" -s user

Replace YOUR_FANTASK_API_TOKEN with the token from Step 1. This registers the fantask MCP server at the user scope (-s user, available across all your Claude Code projects), with the required authorization header, pointed at the production endpoint https://api.fantask.ro/mcp.

Step 3: What changes once connected

When you launch Claude Code in your workspace, it automatically connects to fanTask in the background. You don't call anything directly or learn a new syntax — you just talk to Claude the way you always have, and it decides on its own when to check in with fanTask. In practice, that looks like:

  • "Check fanTask for this project's AI Context and current tasks before we start." — Claude pulls up your architecture notes, gotchas, and open work on its own.
  • "Have we hit this error before?" — Claude searches past fanTask tickets and comments for a prior fix instead of debugging from scratch.
  • "Mark this as in review and note what you changed." — Claude updates the ticket status and leaves an audit comment listing the files it touched.
  • "Log that as a follow-up task so we don't forget it." — Claude opens a new ticket on the board itself, no separate app required.

Recommended Collaborative Workflow

With fanTask connected, an effective session with Claude Code looks like this:

  1. Session Initialization: You start by telling Claude: "Review our project AI Context in fanTask and check active tasks." Claude reads your conventions and open work straight from fanTask before proposing anything.
  2. Active Implementation: Claude marks the target ticket as in progress on its own. If it hits an ambiguous error or unfamiliar SDK behavior, it checks fanTask's task history to see if your team solved it before.
  3. Review & Hand-off: Once the code is written and tests pass, Claude moves the ticket to in review and posts a concise changelog as a comment. You inspect the git diff and the fanTask web UI, then verify and mark the task as done yourself.
Clear Product Boundaries: fanTask does not write your applications for you or synthesize code magically. It is the project management and persistent external memory layer that keeps an AI-assisted build organized, auditable, and on-direction.

Get Started for Free

The fanTask Free plan gives you one complete project board with up to 3 team members, persistent AI Context, and full MCP read and write capability. Paid plans add additional seats and projects.

Create a free fanTask account and connect Claude Code today →

Continue reading:

Frequently Asked Questions

How do I register fanTask as an MCP server in Claude Code?

You can run the claude mcp add command with the HTTP transport pointing to https://api.fantask.ro/mcp and your Bearer token in the Authorization header. Alternatively, copy and paste the ready-to-paste prompt generated under Workspace > MCP / AI directly into Claude Code.

What benefits does Claude Code gain by connecting to fanTask?

Connecting Claude Code gives your agent persistent memory through the project's AI Context field, access to searchable task and bug histories, and the ability to update tickets or log follow-up tasks autonomously without leaving the terminal.

Does fanTask generate code inside Claude Code?

No, fanTask is an AI-native project and task tracking layer rather than a code generator. Claude Code writes the code while fanTask serves as the durable ledger for requirements, context, and task statuses.

Persistent Memory for AI Agents

Ready to give your AI coding agents permanent memory?

fanTask provides persistent AI context and searchable task history over Model Context Protocol. The free tier includes 1 project and 3 members.