Connecting MCP Servers

APM can connect to external MCP servers to extend its capabilities with custom tools, data sources, and integrations.

How to Connect

  1. Navigate to the MCP tab
  2. Click "Add Connection"
  3. Input your connection name and command to start the MCP server
  4. The server will start and appear in your server list

Managing Connected Servers

Server List

In MCP Explorer, you'll see all connected servers with:

  • Connection status (green = connected)
  • Available tools count
  • Error messages if any

Using Server Tools

Once connected, server tools are available:

  1. Select a server in MCP Explorer
  2. View its available tools
  3. Test tools with the built-in tool tester
  4. Tools are now available to all APM features

Disconnecting Servers

To disconnect a server:

  1. Select it in MCP Explorer
  2. Click "Disconnect"
  3. The server process will terminate cleanly

Troubleshooting Connections

Best Practices

  1. Version Control Config Files - Keep MCP configurations in your repository
  2. Use Environment Variables - Don't hardcode sensitive data
  3. Test Locally First - Ensure servers work before connecting to APM
  4. Monitor Performance - Watch for servers using excessive resources
  5. Implement Graceful Shutdown - Handle termination signals properly

Security Considerations

  • Local Only by Default - Servers run on your local machine
  • Process Isolation - Each server runs in its own process
  • No Network Access - Unless explicitly configured
  • Credential Management - Use environment variables or secure storage

Was this page helpful?