Skip to main content

List Connected Servers

GET /mcp/servers
{
  "servers": [
    {
      "name": "github",
      "status": "connected",
      "tools": ["create_pr", "list_issues", "get_file_contents"]
    }
  ]
}

Connect to Server

POST /mcp/connect
{
  "name": "github",
  "command": "github-mcp-server",
  "args": [],
  "env": { "GITHUB_TOKEN": "ghp_..." }
}
{
  "status": "connected",
  "tools": ["create_pr", "list_issues", "get_file_contents", "search_repos"]
}
The connection is saved to ~/.niom/config.json and will auto-reconnect on next boot.

Disconnect Server

DELETE /mcp/:name
Removes the connection and cleans up from config.