Skip to content

Commit 324996b

Browse files
committed
mcp - make npm package
1 parent 3225366 commit 324996b

5 files changed

Lines changed: 233 additions & 770 deletions

File tree

packages/mcp/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# API200 MCP Server
2+
3+
A Model Context Protocol (MCP) server for API200, allowing seamless integration with Claude Desktop and other MCP clients.
4+
5+
## Installation
6+
7+
```bash
8+
npm install -g api200-mcp
9+
```
10+
11+
Or run directly using npx:
12+
13+
```bash
14+
npx api200-mcp
15+
```
16+
17+
## Configuration
18+
19+
The server requires the following environment variables:
20+
21+
- `USER_KEY` (required): Your API200 API key
22+
- `BASE_API_URL` (optional): Base API URL (defaults to "https://eu.api200.co/api")
23+
- `DEBUG` (optional): Set to "true" to enable debug logging
24+
25+
## Claude Desktop Configuration
26+
27+
To configure the API200 MCP server with Claude Desktop:
28+
29+
1. Open Claude Desktop settings
30+
2. Navigate to Developer settings
31+
3. Add a new custom tool with the following configuration:
32+
33+
```json
34+
{
35+
"api200": {
36+
"command": "npx",
37+
"args": [
38+
"api200-mcp"
39+
],
40+
"env": {
41+
"USER_KEY": "your-api-key-here"
42+
}
43+
}
44+
}
45+
```
46+
47+
## Usage
48+
49+
Once configured, you can access all your API200 endpoints directly within Claude Desktop or other MCP-compatible clients.
50+
51+
### Running Standalone
52+
53+
You can also run the tool directly from the command line:
54+
55+
```bash
56+
USER_KEY=your-api-key-here npx api200-mcp
57+
```

packages/mcp/package.json

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
11
{
2+
"name": "api200-mcp",
3+
"version": "1.0.0",
4+
"description": "API200 MCP server for Claude and other model context protocol clients",
25
"type": "module",
6+
"main": "./dist/index.js",
37
"bin": {
4-
"weather": "./build/index.js"
8+
"api200-mcp": "./dist/index.js"
59
},
610
"scripts": {
7-
"build": "tsc && chmod 755 build/index.js",
8-
"run": "npm run build && node build/index.js",
9-
"inspector": "npm run build && npx @modelcontextprotocol/inspector node build/index.js"
11+
"build": "tsup src/index.ts --format esm --dts",
12+
"dev": "tsup src/index.ts --format esm --watch",
13+
"start": "node dist/index.js",
14+
"prepare": "npm run build",
15+
"inspector": "npx @modelcontextprotocol/inspector node dist/index.js"
1016
},
1117
"files": [
12-
"build"
13-
]
18+
"dist",
19+
"README.md"
20+
],
21+
"keywords": [
22+
"mcp",
23+
"model-context-protocol",
24+
"claude",
25+
"api",
26+
"api200"
27+
],
28+
"author": "",
29+
"license": "MIT",
30+
"dependencies": {
31+
"@modelcontextprotocol/sdk": "^1.9.0",
32+
"zod": "^3.24.2"
33+
},
34+
"devDependencies": {
35+
"@types/node": "^22.14.1",
36+
"tsup": "^8.4.0",
37+
"typescript": "^5.3.3"
38+
},
39+
"engines": {
40+
"node": ">=18.0.0"
41+
}
1442
}

0 commit comments

Comments
 (0)