π₯
Internal API MCP Server
No description available
0 installs
Trust: 30 β Low
Healthcare
Ask AI about Internal API MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Internal API MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
internal-api-mcp-server
MCP Server for internal API access. Acts as a protocol bridge between AI tools (Kiro/Cursor) and your authentication backend via stdio transport.
Handles auth login, token caching, and API proxy calls β no business logic included.
Requirements
- Node.js 18+
- Authentication backend service running (default
http://localhost:8080)
Install & Build
npm install
npm run build
Configuration
Local development
{
"mcpServers": {
"internal-api": {
"command": "node",
"args": ["mcp-server/dist/index.js"],
"env": {
"MCP_AUTH_BASE_URL": "http://localhost:8080",
"INTERNAL_API_BASE_URL": "http://localhost:9090"
}
}
}
}
From GitHub
{
"mcpServers": {
"internal-api": {
"command": "npx",
"args": ["-y", "github:cyrain-cheng/internal-api-mcp-server"],
"env": {
"MCP_AUTH_BASE_URL": "https://your-auth-server",
"INTERNAL_API_BASE_URL": "https://your-internal-api"
},
"autoApprove": ["get_auth_status", "get_available_apis"]
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
MCP_AUTH_BASE_URL | http://localhost:8080 | Auth backend URL |
INTERNAL_API_BASE_URL | β | Internal API base URL for call_api |
Tools
| Tool | Description | Params |
|---|---|---|
login | Open browser for scan-to-login auth | β |
get_auth_status | Check current login status | β |
get_available_apis | List APIs available to current user | β |
call_api | Proxy call to internal API with auth token | url, method, params |
logout | Clear locally cached token | β |
Workflow
get_auth_statusβ check loginloginβ scan QR code to authorizeget_available_apisβ see available endpointscall_apiβ fetch business data
call_api params
| Param | Type | Required | Description |
|---|---|---|---|
url | string | yes | API path, e.g. /system/health |
method | string | yes | GET, POST, PUT, DELETE |
params | object | no | Query params for GET, JSON body for others |
Project Structure
src/
βββ index.ts # Entry point, creates MCP Server
βββ tools/
β βββ auth.ts # login, get_auth_status, logout
β βββ api.ts # get_available_apis, call_api
βββ services/
β βββ auth-client.ts # HTTP client for auth backend
β βββ token-manager.ts # Local token cache (~/.internal-api-mcp/token.json)
βββ utils/
βββ browser.ts # Browser opener
License
MIT
