PiAPI MCP Server
piapi-mcp-server
Features (more coming soon)
Working with Claude Desktop Example
Prerequisites
Installation
1.
2.
3.
dist/index.js
file will be generated. You can then configure this file with Claude Desktop and other applications. For detailed configuration instructions, please refer to the Usage section.4.
.env
file in the project root directory with your API key:
Usage
Connecting to Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
on macOS or %APPDATA%\Claude\claude_desktop_config.json
on Windows):{
"mcpServers": {
"piapi": {
"command": "node",
"args": ["/absolute/path/to/piapi-mcp-server/dist/index.js"],
"env": {
"PIAPI_API_KEY": "your_api_key_here"
}
}
}
}
For more detailed information, visit the official MCP documentation
Connecting to Cursor
1.
Ctrl+Shift+J
2.
3.
4.
{
"mcpServers": {
"piapi": {
"command": "node",
"args": ["/absolute/path/to/piapi-mcp-server/dist/index.js"],
"env": {
"PIAPI_API_KEY": "your_api_key_here"
}
}
}
}
5.
6.
1.
Ctrl+I
2.
3.
1.
2.
3.
Development
Project Structure
piapi-mcp-server/
├── assets/
├── src/
│ ├── index.ts # Main server entry point
├── package.json
├── tsconfig.json
└── .env.example