DOKKAEBILABS
WhatsApp us
← All posts

Zhen Yu Zhang · November 18, 2026 · 6 min read

How to Set Up an AI Coding Assistant in 30 Minutes (Claude Code, Cursor and MCP, 2026)

A practical, beginner-friendly setup guide: pick Claude Code or Cursor, install it, give it project rules, connect your first MCP servers, and add the guardrails that stop AI from quietly breaking your code.

ai-engineeringai-codingclaude-codecursormcpprogrammingsingapore

Short answer: pick one tool (Cursor if you like an editor, Claude Code if you like the terminal), install it, write a short rules file that tells it how your project works, connect one or two MCP servers, and keep a human review step on every change. That's the whole setup. It takes about 30 minutes.

Everything below is the long version, with the mistakes we see students and clients make in their first week.

TIP

Tools in this space update every few weeks. The concepts here are stable, but always check the official docs for the exact install command and config format.

Step 1: Pick one tool (5 minutes)

Choose based on how you already work, not on hype.

CursorClaude Code
What it isA code editor (VS Code-based) with AI built inAn AI agent that runs in your terminal
Best forBeginners, visual learners, people already on VS CodeDevelopers comfortable with the command line, bigger multi-file tasks
How you use itChat panel, inline edits, agent modeDescribe a task, it plans, edits files and runs commands
Project rules file.cursor/rules/CLAUDE.md in the project root
MCP supportYesYes

Don't install five tools and compare. Pick one, use it for two weeks, then decide. The habits you build (clear instructions, small tasks, reviewing diffs) transfer to every tool.

Step 2: Install it (5 minutes)

Install from the official source only. Fake "AI coding" extensions and packages are a real malware vector.

Cursor: download it from the official Cursor website, sign in, and import your VS Code settings when prompted.

Claude Code: it installs through npm, so you need Node.js 18 or newer:

npm install -g @anthropic-ai/claude-code
cd your-project
claude

The first run walks you through signing in. After that, you just type claude inside any project folder.

Step 3: Give it a project rules file (10 minutes)

A rules file is the single biggest quality upgrade. Without one, the assistant guesses your conventions. With one, it follows them.

Keep it short and specific. This is a good starting point:

# Project rules
 
## Stack
- Next.js 16 (App Router), TypeScript, Tailwind
- Package manager: npm
 
## Conventions
- Use explicit TypeScript types, never `any`
- Components live in src/components, one component per file
- Match the existing code style; don't reformat files you didn't change
 
## Commands
- Dev server: npm run dev
- Type check: npx tsc --noEmit
- Tests: npm test
 
## Never
- Never commit .env files or print secrets
- Never install new dependencies without asking
- Never delete files without asking

Save it as CLAUDE.md for Claude Code, or as a rule file inside .cursor/rules/ for Cursor.

What makes a rules file work:

  • Commands it can run to check itself. "Run the type check after editing" catches a huge share of AI mistakes automatically.
  • Things it must never do. Be blunt.
  • Short. A 400-line rules file gets skimmed by the model the same way it gets skimmed by humans.

Step 4: Connect your first MCP servers (5 minutes)

MCP lets the assistant use real tools, such as reading your GitHub issues, querying a database or opening a browser, through one standard protocol. If you want the full explanation, read MCP Servers Explained.

Start with one or two. Good first choices:

  • A documentation server so the assistant reads current docs instead of guessing from old training data
  • GitHub (read-only to begin with) so it can see issues and pull requests
  • A browser server if you build web apps, so it can actually look at the page it changed

Claude Code adds servers from the command line:

claude mcp add <server-name> -- <command to start the server>
claude mcp list

Cursor reads a JSON config, .cursor/mcp.json in your project:

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["-y", "<server-package>"]
    }
  }
}

Each MCP server's own README tells you the exact package name and any API keys it needs. Put keys in environment variables, never directly in a committed config file.

WARNING

Every MCP server you add is code running with access to your machine and accounts. Only install servers from sources you trust, start with read-only permissions, and remove the ones you stop using.

Step 5: Your first safe workflow (5 minutes)

Small task, clear instructions, review the diff. That loop is the whole skill.

  1. Create a branch first: git checkout -b ai/first-task. If it goes wrong, you throw the branch away.
  2. Ask for something small and checkable. "Add input validation to the signup form: email must be valid, password at least 12 characters, show inline errors." Not "improve the signup page."
  3. Ask it to explain its plan before it edits. You'll catch wrong assumptions before they turn into 200 lines of code.
  4. Read every diff. If you can't explain a change, don't commit it. Ask the assistant to explain it, or reject it.
  5. Run the checks yourself: type check, tests, and actually click through the feature.

The guardrails that matter

Most AI coding disasters come from the same five gaps:

  • Secrets in context. Keep .env files out of what the assistant reads, and never paste API keys into a prompt.
  • Auto-approving everything. Leave approvals on for commands that install packages, delete files, or touch git history.
  • No tests. The assistant can't tell you it broke something you never tested. Even a few tests change everything.
  • Giant tasks. Big vague requests produce big confident wrong answers. Break the work up.
  • Skipping understanding. If you are learning, the assistant should explain, not just do. We go deeper on this in How to Use AI in Your Code Without Breaking Things and When NOT to Use AI for Your Code.

Where people get stuck after week one

Setup is the easy part. The hard part is knowing whether what the AI wrote is actually good: whether the architecture will hold up, whether there's a security hole, whether the "working" code will fall over with real users.

That judgement comes from fundamentals, and it's exactly what we teach.

  • Want to build AI agents and tools properly? Our AI Engineering sessions take you from your first API call to production agents with LangGraph and MCP.
  • Want this set up for your whole team? Our AI coding setup workshop configures Claude Code or Cursor on your real repositories, with rules files, MCP servers and guardrails your team keeps.
  • Still building your programming foundation? Programming tutoring teaches you to write and review code yourself, with AI as an accelerator, not a crutch.

Private 1-to-1, principal-led. Tell us what you're building and we'll scope your first session.

Frequently asked questions

What is the best AI coding assistant for beginners in 2026?

Cursor is the easiest starting point if you want a familiar editor with AI built in. Claude Code is better if you are comfortable in the terminal and want an agent that can run commands, edit many files and work through larger tasks. Both support project rules files and MCP servers, so the skills transfer.

Do I need to know how to code to use an AI coding assistant?

You can get output without knowing how to code, but you cannot judge whether that output is correct, secure or maintainable. AI assistants make good programmers faster. They do not replace the fundamentals, which is why we teach both together.

What is an MCP server and do I need one?

MCP (Model Context Protocol) is a standard way to let an AI assistant use external tools such as your GitHub, database, browser or documentation. You do not need one on day one. Add one or two once the basic setup works, starting with read-only access.

Is it safe to let an AI assistant run commands on my machine?

It is safe enough if you keep approvals on for commands that change things, never paste secrets into prompts, keep .env files out of the assistant's context, work on a git branch, and review every diff before you commit.

How much does an AI coding assistant cost?

Both Cursor and Claude Code offer individual monthly plans, with higher tiers for heavy usage. Prices and limits change often, so check the official pricing pages before you subscribe. For most learners the entry plan is enough.

ZYZ

Zhen Yu Zhang

Security Engineer · Full-Stack Developer · Founder, Dokkaebi Labs

Zhen Yu designs, secures, and deconstructs systems — then teaches others how to do it right. Based in Singapore. Trained professionals across SG, AU, and the UK.

LinkedIn →

AI Engineering

Build real AI systems

LangChain, LangGraph, MCP and agent architecture — taught by engineers who ship them.

Explore ai engineering →

Keep reading

We take a limited number of students and clients each intake.

Start a conversation →