Anthropic MCP server for AI agents

Send prompts to Claude models, count tokens and list the available models through the Anthropic API.

Auth
API key
Tools
4
Triggers
0
Category
AI

Tools and triggers

  • Create a message

    ANTHROPIC_CREATE_MESSAGE

    Sends a conversation to a Claude model and returns its reply; the answer text is also given in `output_text`. Costs tokens.

  • Count tokens

    ANTHROPIC_COUNT_TOKENS

    Counts how many input tokens a conversation would use for a model, without generating anything.read-only

  • List models

    ANTHROPIC_LIST_MODELS

    Lists the available Claude models, newest first, with ids and display names.read-only

  • Get a model

    ANTHROPIC_GET_MODEL

    Returns one model's id, display name and release date.read-only

Connect via MCP

Create an MCP server for Anthropic in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.

terminal
claude mcp add --transport http anthropic \
  "https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
  --header "x-api-key: ptm_…"

Connect via REST

Run a tool with one request. The response is { data, error, successful, log_id } for every tool.

terminal
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/ANTHROPIC_CREATE_MESSAGE \
  -H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
  -d '{ "user_id": "alice", "arguments": {} }'

Anthropic questions