Anthropic API Server (TypeScript)
@ptitiwat2543
About Anthropic API Server (TypeScript)
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-p-anthropic-api-server": {
"command": "npx",
"args": [
"mcp-p-anthropic-api-server"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Anthropic API Server (TypeScript)?
Anthropic API Server (TypeScript) is a TypeScript-based MCP server that provides a secure interface for connecting to Anthropic’s Claude API. It gives developers a ready‑to‑use backend with high test coverage, streaming support, function calling, and a clean REST API.
How to use Anthropic API Server (TypeScript)?
Clone the repository, install dependencies (npm install), copy .env.example to .env, and set your ANTHROPIC_API_KEY. Run in development with npm run dev, build and start for production with npm run build then npm start, or invoke directly with npx mcp-p-anthropic-api-server. Use the exposed endpoints (GET /api/health, POST /api/messages, etc.) to interact with Claude.
Key features of Anthropic API Server (TypeScript)
- Connects to Anthropic API using the official SDK
- Supports streaming responses for real‑time output
- Enables function calling / tool usage by Claude
- Validates input with Zod schemas
- Provides a built‑in logging system
- Can be run instantly via
npx
Use cases of Anthropic API Server (TypeScript)
- Build AI‑powered chatbots and assistants using Claude
- Create custom tools that Claude can invoke through the
/api/tools/executeendpoint - Integrate Claude’s streaming completions into web or desktop applications
- Use with Claude Desktop by pointing to the server in
claude_desktop_config.json
FAQ from Anthropic API Server (TypeScript)
Why can’t I connect to the Anthropic API?
Check that your ANTHROPIC_API_KEY in the .env file is correct, verify your internet connection, and try the direct API example at examples/direct-anthropic-api.js.
I get “TypeError: app.address is not a function” when running tests.
This occurs with supertest when the app object isn’t a valid Express application. Use direct mock tests instead (see api-coverage-fixed.test.ts) or intercept route handlers directly.
How do I add a new tool?
Edit src/services/tools.ts and call registerTool() with the tool’s schema and an async handler. An example for a getWeather tool is provided in the README.
What runtime does the server require?
It requires Node.js and npm. TypeScript compilation is handled by the included tsconfig.json.
How do I run the test suite?
Use npm test for all tests, npm run test:validation for schema validation tests, npm run test:integration for integration tests, or npm run test:coverage for a coverage report.
Frequently asked questions
Why can’t I connect to the Anthropic API?
Check that your `ANTHROPIC_API_KEY` in the `.env` file is correct, verify your internet connection, and try the direct API example at `examples/direct-anthropic-api.js`.
I get “TypeError: app.address is not a function” when running tests.
This occurs with `supertest` when the app object isn’t a valid Express application. Use direct mock tests instead (see `api-coverage-fixed.test.ts`) or intercept route handlers directly.
How do I add a new tool?
Edit `src/services/tools.ts` and call `registerTool()` with the tool’s schema and an async handler. An example for a `getWeather` tool is provided in the README.
What runtime does the server require?
It requires Node.js and npm. TypeScript compilation is handled by the included `tsconfig.json`.
How do I run the test suite?
Use `npm test` for all tests, `npm run test:validation` for schema validation tests, `npm run test:integration` for integration tests, or `npm run test:coverage` for a coverage report.
Basic information
More Developer Tools MCP servers
OpenSumi
opensumiA framework helps you quickly build AI Native IDE products. MCP Client, supports Model Context Protocol (MCP) tools via MCP server.

Air Pipe
airpipeBuild, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
TranscriptFetch MCP Server
TranscriptFetchModel Context Protocol (MCP) server for TranscriptFetch: fetch YouTube transcripts, search, channels, and playlists from any MCP client.
Comments