Quick heads-up before we start. Every icon on this page is alive. Hover or click any of them (like this ) to see them move and hear their sound.

What is an MCP server, really?

Think of MCP like a small menu you hand to Claude Code, Cursor or VS Code. Instead of you opening a website, hunting for an icon, downloading an SVG, and pasting it into your code, you give your AI editor three simple tools: search, list, and fetch.

Once connected, you just type normal English. The editor reads your menu, calls your server, and drops the result straight into your project. Click the three steps below to see the whole loop.

When Claude Code or Cursor connects, it calls tools/list. Your server replies with a short menu of tools and what inputs each one takes.

Editor sends

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Server replies

{
  "tools": [
    { "name": "search_icons" },
    { "name": "get_icon" }
  ]
}

Try a real MCP server right here

Nothing here is mocked. Click any icon in the dock below to hear it and send a real POST /mcp call to Jiggicons’ live server, then flip between Component, Request and Response to see what travels over the wire.

Ready
POST /mcp → bell

The whole server is just 3 cases

Most tutorials tell you to install five packages before writing a single line. You don’t actually need any of them. An MCP tool server is just one small function that checks message.method and handles three requests:

server.js (zero dependencies)
export async function handleMcp(msg) {
  const { id, method, params = {} } = msg;
  if (id == null) return null; // notification, no reply

  const ok = result => ({ jsonrpc: '2.0', id, result });

  // 1. Handshake
  if (method === 'initialize') {
    return ok({
      protocolVersion: '2025-06-18',
      capabilities: { tools: {} },
      serverInfo: { name: 'jiggicons', version: '0.1.0' },
      instructions: 'Call search_icons first, then get_icon.',
    });
  }

  // 2. Show the menu
  if (method === 'tools/list') {
    return ok({ tools: myTools });
  }

  // 3. Run a tool
  if (method === 'tools/call') {
    const text = await runTool(params.name, params.arguments);
    return ok({ content: [{ type: 'text', text }] });
  }
}

That is genuinely the heart of it. No SDK bloat, no magic middleware, and because there are zero dependencies to bundle, cold starts stay super fast.

Keep tool output plain and short. For search_icons, Jiggicons returns simple one-line text instead of giant nested JSON. That saves ~60% of context tokens and helps the AI pick the right icon faster.

Ship it stateless on AWS Lambda

If you build on AWS, this is the fun part. Older MCP servers needed long-lived SSE connections, which were awkward on Lambda and API Gateway.

Modern MCP uses Streamable HTTP. Every tool call is just a normal POST request that returns JSON. No sticky sessions, no idle EC2 servers. Drop handleMcp inside a Lambda Function URL or API Gateway HTTP API, and it scales to zero for pennies.

Even better, the exact same core also works on Next.js or as a local CLI over stdio. Flip through the three tabs below.

index.mjs (Lambda Function URL or API Gateway)
import { handleMcp } from './server.js';

export async function handler(event) {
  const payload = JSON.parse(event.body || '{}');
  const reply = await handleMcp(payload, event);

  // Notifications have no id and expect 202
  if (!reply) return { statusCode: 202, body: '' };

  return {
    statusCode: 200,
    headers: {
      'content-type': 'application/json',
      'cache-control': 'no-store',
    },
    body: JSON.stringify(reply),
  };
}

One quick CLI gotcha. On AWS Lambda, console.log() goes cleanly to CloudWatch. In a local stdio server, stdout is the message pipe itself! One stray log breaks the connection, so always log to process.stderr.

Connect it to Claude Code or Cursor

You can test Jiggicons’ live server in your editor right now with zero signup. It searches all 6,010 icons and lets you pull any of the 80 free ones straight into your project.

Terminal
claude mcp add --transport http jiggicons https://jiggicons.com/mcp

4 quick lessons from shipping it

  • Keep your instructions tiny. The instructions string from initialize is read on every session. Five short lines beat a five-page doc.
  • Return helpful errors so the AI can retry. If the model asks for an unknown id, reply with isError: true and a hint like Use search_icons first. It fixes itself on the next turn.
  • Lock down IAM when wrapping AWS services. If your Lambda MCP talks to DynamoDB, S3 or CloudWatch, use a tight least-privilege IAM role and set readOnlyHint: true on safe read tools.
  • Smoke-test with plain curl first. Since Streamable HTTP is just JSON over POST, you can verify your Lambda in CI with one curl command and zero AI tokens.
Smoke test any MCP server
curl -s https://jiggicons.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Whether you are building an internal CloudWatch helper for your team or a developer tool like Jiggicons, shipping an MCP server is honestly one of the fastest, highest-impact weekend projects you can build right now.

Finished the guide? Pull a mystery pack

Since you made it all the way to the end, grab a pack on me. Open any box below, then drop your email and watch it unpack: 50 bonus everyday icons in all four styles, 10 at a time, plus occasional updates when I ship new icons or guides.

Click any box to unbox it

Grab 50 bonus icons + newsletter

Drop your email and I will send 50 everyday interface icons (search, settings, person, dashboard, play, edit, share, filter, arrows and more) in all 4 styles, plus occasional updates when I publish new guides or icon drops.

Free for personal and commercial projects. Unsubscribe in one click.