Skip to content
MCP server

Crimson Crab MCP Template

Rust starter MCP server wrapping Claude API for chat, prompts and token counting

Pricing
Open source
Platforms
CLI, API, macOS
Version
0.3.1
Listing updated
today

Similar MCP servers

About Crimson Crab MCP Template

Crimson Crab MCP Template is an open-source MCP server for ai models and llm tooling. It is available on CLI, API, macOS, Windows and Linux.

The README says this is a minimal MCP server written in Rust that forwards requests to Anthropic's Claude API through the crimson-crab SDK. Its five tools cover single prompts, multi-turn chat, estimating input token counts before a call, listing the models a key can access, and looking up limits for one model.

It runs over stdio, so an MCP client such as Claude Desktop launches the compiled binary and supplies an ANTHROPIC_API_KEY through the environment. Logs are written to stderr so that stdout stays free for protocol traffic. Errors are returned as MCP tool errors, and the Claude client is created once at startup and reused.

The project is aimed at developers who want a working reference for building their own Claude-backed MCP tools in Rust, either by cloning the repository or generating a project with cargo-generate.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

ask_claude
Sends a prompt to Claude and returns the text reply.
chat
Sends a multi-turn message history to Claude and returns the next reply.
count_tokens
Returns the number of input tokens a prompt would consume.
list_models
Lists the Claude models available to the configured API key.
get_model
Returns display name, release date, context window and max output tokens for one model.

What it does

Single prompt tool
The ask_claude tool sends one prompt with an optional system prompt and returns Claude's text reply.
Multi-turn chat
The chat tool takes an ordered message history and returns the next assistant reply, keeping context across turns.
Token counting
The count_tokens tool reports how many input tokens a prompt would use without running it, useful for cost estimates.
Model discovery
list_models and get_model return available models for the API key, including context window and output limits for one model.
Stdio transport
Runs over stdio with logging sent to stderr, and can be wired into Claude Desktop through its config file.

Good for

  • Starting a new Rust project that exposes Claude calls as MCP tools
  • Estimating prompt cost before making expensive Claude API requests
  • Connecting Claude Desktop to Claude API functions through a local binary
  • Checking which Claude models an API key can use and their limits

Pricing

Open source

Open source under MIT or Apache-2.0; Claude API usage is billed by Anthropic.

Crimson Crab MCP Template FAQ

What language is the server written in?

It is written in Rust and uses the crimson-crab SDK to call Anthropic's Claude API.

How does a client connect to it?

The server communicates over stdio. The README shows adding a command entry for the release binary to the Claude Desktop MCP config, with the API key passed as an environment variable.

Which tools does it expose?

Five tools: ask_claude, chat, count_tokens, list_models and get_model.

Is it affiliated with Anthropic?

The README states that crimson-crab is an independent open-source project and is not affiliated with Anthropic.

Is Crimson Crab MCP Template free?

Yes. Crimson Crab MCP Template is open source, so you can use and self-host it for free.

What are the best alternatives to Crimson Crab MCP Template?

The closest alternatives to Crimson Crab MCP Template are MCP, Apollo MCP Server, Joplin MCP for Claude & ChatGPT, MCP Server Template and MCPfinder - MCP Server Discovery.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.

How AIPoweredBot checks servers