singhpratech/crimson-crab-mcp-template

šŸ”— Aggregators
0 Views
0 Installs

šŸ¦€ šŸ  šŸŽ 🪟 🐧 - A ready-to-clone Rust MCP server that calls Anthropic's Claude API via the crimson-crab SDK. Exposes an askclaude tool. MIT/Apache-2.0.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "singhpratech-crimson-crab-mcp-template": {
      "command": "npx",
      "args": [
        "-y",
        "singhpratech-crimson-crab-mcp-template"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Claude-powered MCP server in Rust (starter template)

crimson-crab-mcp-template MCP server crates.io license

A minimal, production-ready Model Context Protocol (MCP) server, written in Rust, that exposes a single tool — ask_claude — backed by Anthropic's Claude API through the crimson-crab SDK. When an MCP client (such as Claude Desktop) calls the tool, the server sends the prompt to Claude and returns Claude's text answer.

Use it as the reference starting point for building your own Claude-powered MCP tools in Rust.

Use this template

Click Use this template on GitHub, or generate a fresh project with cargo generate:

cargo generate --git https://github.com/singhpratech/crimson-crab-mcp-template

You can also just clone it:

git clone https://github.com/singhpratech/crimson-crab-mcp-template

Quickstart

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 to stderr — stdout is reserved for the MCP protocol. Set RUST_LOG=debug for more verbose logs.

To build an optimized binary you can point a client at:

cargo build --release
# -> target/release/crimson-crab-mcp-template

Wire it into Claude Desktop

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; the ask_claude tool will then be available.

What ask_claude does

ParameterTypeRequiredDescription
promptstringyesThe prompt to send to Claude.
systemstringnoOptional system prompt.

The tool builds a Claude Messages request (defaulting to the claude-opus-4-8 model), calls the API, and returns the concatenated text of Claude's reply. Errors are returned as MCP tool errors rather than panicking. The Claude client is built once at startup and reused across calls.

Built with crimson-crab

This template is built with crimson-crab — a production-grade Rust SDK for Anthropic's Claude API. Source: https://github.com/singhpratech/crimson-crab.

License

Licensed under either of

at your option.


crimson-crab is an independent open-source project and is not affiliated with Anthropic.

Related MCP Servers

thebrierfox/the-stall

šŸ“‡ ā˜ļø - 209 pay-per-call AI capabilities via x402 USDC micropayments on Base mainnet. Covers US/global equities, crypto/DeFi analytics, options chains, dealer GEX, macro indicators, congressional trades, prediction markets, on-chain intelligence, EVM & Solana analysis, SEC filings, weather, aviation, and more. No API key — pay per call from $0.001 USDC.

šŸ”— Aggregators2 views
1mcp/agent

šŸ“‡ ā˜ļø šŸ  šŸŽ 🪟 🐧 - A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.

šŸ”— Aggregators0 views
2s-io/sdk

šŸ“‡ ā˜ļø šŸŽ 🪟 🐧 - Unified API for AI agents — 180+ tools across geocoding, weather (NWS), climate stations (NOAA), earthquakes (USGS), tides (NOAA), points of interest (OpenStreetMap), patents (USPTO ODP), US case law (CourtListener / Free Law Project), Federal Register, Wikipedia, scientific papers (arXiv / PubMed / Semantic Scholar), AI summarize / translate / extract / screenshot / image-describe, image compression, DNS / WHOIS, crypto address-validate + EVM gas oracle, OFAC sanctions screening, US Census ACS demographics, airport / ZIP lookup. Sub-cent to a few cents per call in USDC on Base via x402 — no API keys, no signup. npx -y @2sio/mcp

šŸ”— Aggregators0 views
8randonpickart5/alderpost-mcp

šŸ“‡ ā˜ļø - 8 bundled intelligence endpoints (security, company, threat, compliance, sales, sports, property, health) via x402 micropayments on Base.

šŸ”— Aggregators0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
ā˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.