crimson-crab-mcp-template
About
A ready-to-clone Rust MCP server that calls Anthropic's Claude API via the crimson-crab SDK.
Details
- Author
- singhpratech
- Categories
- Developer Tools, Other, AI
Jump to
Setup
Install crimson-crab-mcp-template in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/singhpratech/crimson-crab-mcp-template
Follow the installation instructions in the repository README, then restart your MCP client.
A ready-to-clone Rust MCP server that calls Anthropic's Claude API via the crimson-crab SDK.
Claude-powered MCP server in Rust (starter template)
A minimal, production-readyModel Context Protocol(MCP) server, written in Rust, backed by Anthropic's Claude API through thecrimson-crabSDK. It exposes five tools:ask_claude(send a prompt, get Claude's reply),chat(multi-turn conversation),count_tokens(price a prompt without running it),list_models(enumerate the models your API key can use), andget_model(limits and metadata for one model).
Use it as the reference starting point for building your own Claude-powered MCP tools in Rust.
ClickUse this templateon GitHub, or generate a fresh project withcargo generate:
cargo generate --git https://github.com/singhpratech/crimson-crab-mcp-template
git clone https://github.com/singhpratech/crimson-crab-mcp-template
export ANTHROPIC_API_KEY=sk-ant-... cargo run
The server communicates over stdio, so running it directly just waits for an MCP client to connect. All logging goes tostderr— stdout is reserved for the MCP protocol. SetRUST_LOG=debugfor more verbose logs.
To build an optimized binary you can point a client at:
cargo build --release # -> target/release/crimson-crab-mcp-template
Add an entry to your Claude Desktop MCP config (claude_desktop_config.json), pointing at the built binary and passing your API key through the environment:
{ "mcpServers": { "claude-via-crimson-crab": { "command": "/absolute/path/to/target/release/crimson-crab-mcp-template", "env": { "ANTHROPIC_API_KEY": "sk-ant-..." } } } }
Restart Claude Desktop; theask_claude,chat,count_tokens,list_models, andget_modeltools will then be available.
Builds a Claude Messages request (defaulting to theclaude-opus-5model), calls the API, and returns the concatenated text of Claude's reply.
Sends the whole message history to Claude and returns the next reply — use it instead ofask_claudewhen the caller needs to keep context across turns.
Returns the number of input tokens the prompt would consume, without running it — useful for estimating cost before an expensive call.
Returns the id, display name, and release date of each Claude model available to the configured API key.
Returns the model's display name, release date, context window (max_input_tokens), and maximum output tokens.
Errors from all tools are returned as MCP tool errors rather than panicking. The Claude client is built once at startup and reused across calls.
This template is built withcrimson-crab— a production-grade Rust SDK for Anthropic's Claude API. Source:https://github.com/singhpratech/crimson-crab.
- MIT license (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
crimson-crab is an independent open-source project and is not affiliated with Anthropic.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.
A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.
MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.
Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.
Open-source Claude Code plugin replacing Read/Grep/Edit/Bash with token-efficient versions. Independently benchmarked at 57% token reduction on real codebases. 40 MCP tools.
Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.
Context-optimized security plugin for Claude Code that builds architecture maps and redacts secrets.
Charon gives AI clients scoped, auditable access to Lethe memory. connect to Chatgpt or Claude to store memories locally.
Score CLAUDE.md/AGENTS.md, validate clarx-manifest.json, generate CI workflows, and pull repo scan findings into Cursor, Claude, or Grok.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





