anthropic-mcp

anthropic-mcp

Provides access to Claude models, message creation, token counting, and batch processing via the Anthropic API with Type 3 DAuth authentication.

Category
Visit Server

README

Anthropic MCP Server

A Type 3 DAuth MCP server for Anthropic API. Provides access to Claude models, message creation, token counting, and batch processing.

Features

  • List Models — View available Claude models
  • Create Message — Chat with Claude
  • Count Tokens — Calculate token usage for text
  • Create Batch — Submit batch jobs for async processing
  • Get Batch — Check batch job status
  • Cancel Batch — Cancel a running batch

Authentication

This server uses Type 3 DAuth (Dedalus Auth) — your API key is encrypted client-side and decrypted in a secure Dedalus enclave.

Get Your Anthropic API Key

  1. Go to https://console.anthropic.com/settings/keys
  2. Create a new API key
  3. Copy the key

Installation

git clone https://github.com/dedalus-labs/anthropic-mcp.git
cd anthropic-mcp
pip install -e .
cp .env.example .env
# Edit .env and add ANTHROPIC_API_KEY

Available Tools

anthropic_list_models

List available Claude models.

anthropic_list_models()

anthropic_create_message

Create a message with Claude.

anthropic_create_message(
    model="claude-sonnet-4-20250514",
    messages=[{"role": "user", "content": "Hello!"}],
    max_tokens=500,
    temperature=1.0,
)

anthropic_count_tokens

Count tokens in text.

anthropic_count_tokens(
    text="Hello, world!",
    model="claude-3-5-sonnet-20241022",
)

anthropic_create_batch

Create a batch job.

anthropic_create_batch(
    requests=[
        {"model": "claude-sonnet-4-20250514", "messages": [{"role": "user", "content": "Hi"}]},
    ],
    metadata={"source": "mcp"},
)

anthropic_get_batch

Get batch status.

anthropic_get_batch(batch_id="batch-id-here")

anthropic_cancel_batch

Cancel a batch.

anthropic_cancel_batch(batch_id="batch-id-here")

Cost & Rate Limits

Anthropic uses per-token pricing. Check https://anthropic.com/pricing for current rates.

Deploy to Dedalus

  1. Push to GitHub (public repo)
  2. Go to https://www.dedaluslabs.ai/dashboard
  3. Add Server → Connect GitHub repo
  4. Set ANTHROPIC_API_KEY as Required Credential
  5. Deploy

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured