OBI MCP Server
Provides lifecycle management for OpenTelemetry eBPF Instrumentation (OBI), enabling local deployment, status checks, configuration retrieval and updates, log access, and stopping the OBI process.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OBI MCP Server Deploy OBI with the default config and show me its status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OBI MCP Server
Model Context Protocol (MCP) server for OpenTelemetry eBPF Instrumentation (OBI)
Enable AI assistants to deploy, configure, and analyze application observability using OpenTelemetry's zero-code eBPF instrumentation.
Table of Contents
Related MCP server: RuntimeClue
๐ Features
6 MCP Tools: Complete OBI lifecycle management through AI assistants
3 MCP Resources: Real-time access to configuration, status, and logs
1 MCP Prompt: Guided local deployment setup
Zero-Code Instrumentation via AI: Deploy OBI with natural language commands
Process Lifecycle Management: Start, stop, and monitor OBI processes
Configuration Management: Update OBI configuration through AI assistance
Log Analysis: Query and analyze OBI telemetry output
Multi-Platform: Works with any MCP-compatible AI client (Claude Desktop, Continue, etc.)
99.81% Test Coverage: Comprehensive test suite with 270 tests
Full TypeScript Support: Type-safe implementation with complete type definitions
๐ Quick Start
5-Minute Setup
1. Install Dependencies
# Clone the repository
git clone https://github.com/raibid-labs/obi-mcp.git
cd obi-mcp
# Install dependencies
npm install
# Build the project
npm run build2. Configure Claude Desktop
Add to your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"obi": {
"command": "node",
"args": ["/absolute/path/to/obi-mcp/dist/index.js"]
}
}
}Or, after publishing to npm:
{
"mcpServers": {
"obi": {
"command": "npx",
"args": ["obi-mcp-server"]
}
}
}3. Restart Claude Desktop
After updating the configuration, restart Claude Desktop to load the MCP server.
4. Use with Claude
You: "Deploy OBI with default configuration"
Claude: [Uses obi_deploy_local tool to start OBI]
You: "What's the current status of OBI?"
Claude: [Uses obi_get_status tool to check health]
You: "Show me the recent logs"
Claude: [Uses obi_get_logs tool to fetch logs]๐ ๏ธ Available Tools
The OBI MCP Server provides 6 tools for managing OpenTelemetry eBPF Instrumentation:
1. obi_get_status
Get the current status of the OBI process.
Arguments:
verbose(boolean, optional): Include detailed process information (CPU, memory, uptime)Default:
false
Example usage in Claude:
"What's the status of OBI?"
"Check if OBI is running and show me detailed metrics"
"Is OBI healthy?"Returns:
=== OBI Status ===
Status: running
PID: 12345
Uptime: 3600s
--- Details ---
CPU Usage: 2.5%
Memory Usage: 150.32 MB
Config Path: /path/to/obi-config.yml2. obi_deploy_local
Deploy OBI locally in standalone mode.
Arguments:
config(object, optional): OBI configuration objectconfigPath(string, optional): Path to OBI configuration filebinaryPath(string, optional): Path to OBI binary (uses PATH if not provided)
Note: Either config or configPath should be provided.
Example usage in Claude:
"Deploy OBI with default configuration"
"Start OBI using the config at /etc/obi/config.yaml"
"Deploy OBI with network monitoring enabled"Returns:
=== OBI Local Deployment ===
Status: SUCCESS
Message: OBI deployed successfully
PID: 12345
Config Path: /tmp/obi-config.yaml3. obi_get_config
Retrieve the current OBI configuration.
Arguments: None
Example usage in Claude:
"Show me the current OBI configuration"
"What's the active configuration?"
"Get OBI config"Returns:
=== OBI Configuration ===
{
"network": {
"enable": true,
"allowed_attributes": ["http.method", "http.status_code"]
},
"export": {
"otlp": {
"endpoint": "localhost:4317",
"protocol": "grpc"
}
}
}4. obi_update_config
Update the OBI configuration with validation.
Arguments:
config(object, required): New configuration object (or partial config if merge=true)network(object, optional): Network instrumentation settingsenable(boolean): Enable network monitoringallowed_attributes(string[]): Allowed HTTP attributescidrs(array): CIDR configurations
attributes(object, optional): Attribute settingskubernetes.enable(boolean): Enable Kubernetes attributes
export(object, optional): Export configurationotlp.endpoint(string): OTLP endpoint URLotlp.protocol(string): Protocol (grpc or http/protobuf)
merge(boolean, optional): Merge with existing config (default: true)restart(boolean, optional): Restart OBI after updating (default: false)
Example usage in Claude:
"Update the OTLP endpoint to localhost:4318"
"Enable Kubernetes attributes in the config"
"Change the configuration and restart OBI"Returns:
=== OBI Config Update ===
Status: Success
Message: Configuration updated successfully
Note: Restart OBI for changes to take effect.
--- Updated Configuration ---
{...}5. obi_get_logs
Retrieve recent logs from the OBI process.
Arguments:
lines(number, optional): Number of recent log lines to retrieveDefault:
100Range: 1-10000
level(string, optional): Filter logs by levelOptions:
info,warn,error,debug,all
Example usage in Claude:
"Show me the last 50 lines of OBI logs"
"Get error logs from OBI"
"Show recent debug logs"Returns:
=== OBI Logs === [Level: ERROR] [Last 5 lines]
[2025-11-14 10:23:45] [ERROR] Failed to connect to OTLP endpoint
[2025-11-14 10:23:46] [ERROR] Retrying connection...
[2025-11-14 10:24:00] [ERROR] Connection timeout
--- End of Logs ---6. obi_stop
Stop the running OBI process.
Arguments:
force(boolean, optional): Force immediate termination using SIGKILLDefault:
false(uses graceful SIGTERM)
Example usage in Claude:
"Stop OBI"
"Shut down the OBI process"
"Force stop OBI immediately"Returns:
=== OBI Stop ===
Status: Success
Message: OBI process stopped successfully
The OBI process has been stopped successfully.๐ฆ Resources
MCP resources provide read-only access to OBI state and configuration. These can be used by AI assistants to get real-time information.
obi://config/current
Name: Current OBI Configuration
MIME Type: application/json
Description: The current OBI configuration in JSON format
Usage in Claude:
"Read the current OBI configuration resource"Returns: Current configuration as JSON
obi://status/health
Name: OBI Process Health
MIME Type: application/json
Description: Current health status and metrics of the OBI process
Usage in Claude:
"Check the OBI health resource"
"Show me the health status"Returns:
{
"status": "running",
"running": true,
"pid": 12345,
"uptimeSeconds": 3600,
"cpuUsagePercent": 2.5,
"memoryUsageMB": 150.32,
"configPath": "/tmp/obi-config.yaml",
"timestamp": "2025-11-14T10:30:00.000Z"
}obi://logs/recent
Name: Recent OBI Logs
MIME Type: text/plain
Description: Last 100 lines from OBI logs
Usage in Claude:
"Read the recent logs resource"Returns: Plain text log entries (last 100 lines)
๐ฌ Prompts
MCP prompts provide guided workflows for common tasks.
setup-obi-local
Name: Setup OBI Local Deployment Description: Guided setup for deploying OBI (OpenTelemetry eBPF Instrumentation) locally
Arguments:
environment(string, optional): Target environment typeOptions:
development,productionDefault:
development
Usage in Claude:
"Use the setup-obi-local prompt"
"Guide me through setting up OBI for production"Provides:
Prerequisites check (kernel version, sudo access, dependencies)
Configuration file templates
Deployment options (binary, Docker, from source)
Verification steps
Troubleshooting guide
Production checklist (when environment=production)
๐ Prerequisites
Node.js >= 18.0.0
Linux kernel 5.8+ (for OBI eBPF support)
OBI binary installed (installation guide)
Root/sudo access (required by OBI for eBPF operations)
Optional
Docker (for containerized deployments)
bpftool (for debugging eBPF programs)
OpenTelemetry Collector (for receiving telemetry data)
๐ Documentation
API Reference - Complete tool, resource, and prompt specifications
Architecture - System design and components
Quick Start Guide - Getting started guide
Semantic Versioning - Commit messages and versioning
Release Process - How to create releases
Roadmap - Future features and timeline
Changelog - Version history and release notes
๐งช Testing
The project has comprehensive test coverage with 270 tests and 99.81% coverage.
# Run all tests
npm test
# Run with coverage report
npm test -- --coverage
# Run unit tests only
npm run test:unit
# Run integration tests (requires OBI binary)
npm run test:integration
# Run E2E tests
npm run test:e2e
# Watch mode
npm run test -- --watchTest Breakdown
Unit Tests: Tool handlers, resource handlers, utilities
Integration Tests: MCP protocol integration, OBI manager
E2E Tests: Complete lifecycle workflows
๐๏ธ Project Structure
obi-mcp-server/
โโโ src/
โ โโโ index.ts # Entry point
โ โโโ server/
โ โ โโโ index.ts # MCP server implementation
โ โโโ tools/ # MCP tools (6 tools)
โ โ โโโ index.ts # Tool exports
โ โ โโโ status.ts # obi_get_status
โ โ โโโ deploy-local.ts # obi_deploy_local
โ โ โโโ get-config.ts # obi_get_config
โ โ โโโ update-config.ts # obi_update_config
โ โ โโโ get-logs.ts # obi_get_logs
โ โ โโโ stop.ts # obi_stop
โ โโโ resources/ # MCP resources (3 resources)
โ โ โโโ index.ts # Resource handlers
โ โโโ prompts/ # MCP prompts (1 prompt)
โ โ โโโ index.ts # Prompt exports
โ โ โโโ setup-local.ts # setup-obi-local prompt
โ โโโ types/
โ โ โโโ obi.ts # OBI type definitions
โ โ โโโ mcp.ts # MCP type definitions
โ โโโ utils/
โ โโโ logger.ts # Logging utility
โ โโโ process.ts # Process management
โ โโโ obi-manager.ts # OBI lifecycle manager
โโโ tests/
โ โโโ unit/ # Unit tests
โ โโโ integration/ # Integration tests
โ โโโ e2e/ # End-to-end tests
โโโ docs/
โ โโโ API.md # API reference
โ โโโ ARCHITECTURE.md # Architecture documentation
โ โโโ QUICKSTART.md # Quick start guide
โ โโโ SEMANTIC_VERSIONING.md # Commit message guide
โ โโโ RELEASING.md # Release process
โ โโโ RELEASE_QUICKSTART.md # Quick release reference
โ โโโ ROADMAP.md # Feature roadmap
โโโ examples/
โ โโโ configs/ # Example configurations
โโโ package.json
โโโ tsconfig.json
โโโ CHANGELOG.md
โโโ README.md๐บ๏ธ Roadmap
โ v0.1.0 - MVP (Current Release)
TypeScript project structure
MCP server with stdio transport
6 MCP tools for OBI management
3 MCP resources for config/status/logs
1 MCP prompt for guided setup
Comprehensive test suite (270 tests, 99.81% coverage)
Complete documentation
Full TypeScript support
๐ง v0.2.0 - Enhanced Features (Next)
Docker deployment support
Basic Kubernetes integration
Metrics aggregation and analysis
OTLP endpoint integration
Configuration validation tool
Performance benchmarking
๐ฎ v0.3.0 - Advanced Capabilities (Future)
Multi-instance OBI management
Advanced filtering and querying
Custom instrumentation targets
Integration with observability platforms
Real-time metrics streaming
Dashboard generation
See ROADMAP.md for detailed timeline and feature specifications.
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for detailed guidelines.
Development Workflow
# Install dependencies
npm install
# Watch TypeScript compilation
npm run watch
# Run in development mode
npm run dev
# Run linter
npm run lint
# Format code
npm run format
# Type check
npm run typecheck
# Run all quality checks
npm run lint && npm run typecheck && npm run test:all && npm run buildCommit Message Convention
We follow Conventional Commits for automatic versioning and changelog generation.
Format:
<type>(<scope>): <description>
[optional body]
[optional footer]Common types:
Type | Effect | Example |
| MINOR version |
|
| PATCH version |
|
| PATCH version |
|
| PATCH version |
|
| PATCH version |
|
| PATCH version |
|
| PATCH version |
|
| MAJOR version |
|
Examples:
# New feature
git commit -m "feat(tools): add Kubernetes deployment support"
# Bug fix
git commit -m "fix(status): prevent crash when OBI is not running"
# Breaking change
git commit -m "feat(config)!: restructure configuration schema
BREAKING CHANGE: Config format has changed. See migration guide."
# Documentation
git commit -m "docs(readme): add troubleshooting section"See detailed guide: docs/SEMANTIC_VERSIONING.md
Release Process
Releases are automated through conventional commits:
# Create release (choose based on your changes)
npm run release # PATCH: 0.1.0 โ 0.1.1 (bug fixes)
npm run release:minor # MINOR: 0.1.0 โ 0.2.0 (new features)
npm run release:major # MAJOR: 0.1.0 โ 1.0.0 (breaking changes)
# Or use just
just release
just release-minor
just release-majorSee: docs/RELEASE_QUICKSTART.md for quick reference
๐ License
MIT License - see LICENSE for details.
๐ Acknowledgments
OpenTelemetry Community for OBI
Anthropic for Model Context Protocol
Grafana Labs for Beyla (OBI's predecessor)
๐ Links
๐ฌ Support
GitHub Issues: Report bugs or request features
Slack:
#otel-ebpf-instrumentationon CNCF SlackDiscussions: GitHub Discussions
Status: ๐ Beta - Ready for Testing
Version: 0.1.0 - Initial MVP release with 6 tools, 3 resources, and 1 prompt. Production-ready for evaluation and testing.
Using just Commands
If you have just installed, you can use convenient shortcuts:
# Full setup from scratch
just setup
# Start development server
just dev
# Run all tests
just test
# Run tests with coverage
just test-coverage
# Build project
just build
# Run quality checks (typecheck + lint + test)
just check
# Show all available commands
just --list
# Interactive demo
just demo
# Get Claude Desktop setup instructions
just setup-claude๐ Usage Examples
Example 1: Deploy and Monitor OBI
You: "Deploy OBI with default configuration"
Claude: โ Deployed OBI successfully (PID: 12345)
You: "What's the status? Show me detailed metrics"
Claude: [Shows CPU: 2.5%, Memory: 150MB, Uptime: 30s]
You: "Show me the last 50 log lines"
Claude: [Displays recent OBI logs]Example 2: Configuration Management
You: "Show me the current OBI configuration"
Claude: [Displays config JSON]
You: "Update the configuration to enable Kubernetes attributes and restart OBI"
Claude: โ Configuration updated and OBI restarted
You: "Verify the new configuration is active"
Claude: [Shows updated config with Kubernetes enabled]Example 3: Using Resources
You: "What resources does the OBI server provide?"
Claude: Three resources available:
โข obi://config/current - Current configuration
โข obi://status/health - Health metrics
โข obi://logs/recent - Recent logs
You: "Show me obi://status/health"
Claude: [Displays real-time health data]Example 4: Troubleshooting
You: "Help me set up OBI locally"
Claude: [Launches setup-obi-local prompt with step-by-step guide]
You: "OBI isn't starting - what should I check?"
Claude: Let me help debug:
1. Checking if OBI is already running... โ Not running
2. Checking prerequisites...
3. Attempting to deploy with verbose logging...
You: "Show me error logs from the last hour"
Claude: [Filters and displays error-level logs]Available Tools
17 toolsobi_deploy_localB
Deploy the OpenTelemetry eBPF Instrumentation (OBI) locally in standalone mode. This tool starts the OBI process with the specified configuration. You can provide either a config object directly or a path to a configuration file.
Inputs: config, binaryPath, configPath.
obi_docker_composeB
Generate a docker-compose.yml file for deploying OBI. Optionally includes OpenTelemetry Collector service. Returns complete compose file content ready to use.
Inputs: network, volumes, resources, targetPort, +3 more.
obi_docker_deployB
Deploy OpenTelemetry eBPF Instrumentation (OBI) as a Docker container. Supports standalone and Docker Compose modes with configurable networking, resource limits, and OTLP endpoint configuration.
Inputs: mode, config, network, resources, +3 more.
obi_docker_logsA
Fetch logs from the OBI Docker container. Supports filtering by log level, time range, and number of lines. Can optionally follow logs in real-time.
Inputs: level, lines, since, follow.
obi_docker_statusA
Get the current status of the OBI Docker container. Returns information about running status, resource usage, network configuration, and container health.
Inputs: verbose.
obi_docker_stopB
Stop and remove the OBI Docker container. Supports graceful shutdown with configurable timeout, or forced stop. Optionally removes associated volumes.
Inputs: force, removeVolumes.
obi_get_configB
Retrieve the current OpenTelemetry eBPF Instrumentation (OBI) configuration. Returns the active configuration including network settings, attributes, and export endpoints.
Inputs: no named parameters.
obi_get_logsA
Retrieve recent logs from the OpenTelemetry eBPF Instrumentation (OBI) process. Returns log entries with optional filtering by log level (info, warn, error, debug, or all).
Inputs: level, lines.
obi_get_statusB
Get the current status of the OpenTelemetry eBPF Instrumentation (OBI) process. Returns information about whether OBI is running, its PID, resource usage, and health.
Inputs: verbose.
obi_k8s_configC
Update OBI ConfigMap in Kubernetes
Inputs: merge, config, context, restart, +3 more.
obi_k8s_deployC
Deploy OBI to Kubernetes as DaemonSet with RBAC and ConfigMap
Inputs: image, dryRun, context, imageTag, +8 more.
obi_k8s_logsC
Get aggregated logs from OBI pods
Inputs: tail, since, context, podName, +3 more.
obi_k8s_statusC
Get OBI deployment status in Kubernetes cluster
Inputs: context, verbose, namespace, kubeconfig.
obi_k8s_undeployC
Remove OBI deployment from Kubernetes cluster
Inputs: context, namespace, deleteRbac, keepConfig, +2 more.
obi_k8s_upgradeC
Upgrade OBI version in Kubernetes cluster
Inputs: image, context, imageTag, namespace, +2 more.
obi_stopA
Stop the running OpenTelemetry eBPF Instrumentation (OBI) process. Gracefully terminates the OBI process using SIGTERM, with SIGKILL as fallback. Use force=true to immediately send SIGKILL instead of graceful shutdown.
Inputs: force.
obi_update_configA
Update the OpenTelemetry eBPF Instrumentation (OBI) configuration. Supports merging with existing config or replacing entirely. Can optionally restart OBI to apply changes immediately.
Inputs: config (required), merge, restart.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 17 tools
Tools are largely separated by deployment target (local, docker, k8s) and action, so an agent can mostly pick correctly. The main friction is that local-mode tools use bare names (obi_get_status, obi_get_logs, obi_update_config) while the docker/k8s counterparts are prefixed, making obi_get_status vs obi_docker_status vs obi_k8s_status and obi_update_config vs obi_k8s_config subtly confusable at a glance.
There is a recognizable obi_<target>_<action> family, but conventions are mixed: local tools use obi_get_status/obi_get_logs (get_ prefix, no target), while docker/k8s use obi_docker_status/obi_k8s_logs (target, no get). Deploy verbs also vary (obi_deploy_local vs obi_docker_deploy vs obi_k8s_deploy).
17 tools is on the heavy side of the ideal range, but it reflects three genuine deployment surfaces (local, Docker, Kubernetes), each with deploy/status/logs/lifecycle operations. Each tool maps to a real operation rather than being redundant filler.
Local, Docker, and Kubernetes lifecycles are well covered (deploy, stop/undeploy, status, logs, config, upgrade, compose generation). Minor gaps exist, e.g. no read-side Kubernetes config retrieval (only obi_k8s_config update) and no Docker-side config inspection/update tool, but core workflows are complete.
Maintenance
Related MCP Connectors
MCP-Native LLM Orchestration Agent
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
LLM Orchestration Agent (Opentelemetry Api)
LLM Orchestration Agent (Mcp)
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to manage local development environments over MCP by starting, stopping, and restarting applications and processes, reading logs with cursors, and inspecting or freeing listening ports. Exposes a fixed set of id- and port-based tools, so the agent can operate registered processes without running arbitrary commands.MIT
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI assistants to inspect projects, processes, ports, logs, HTTP endpoints, Git state, and development databases for local runtime diagnostics.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables local AI models to be used through MCP, exposing tools for coding assistance, code review, model listing, status checks, and benchmarking.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query system health, metrics, service reconnaissance, run multi-node patrols, and send incident alerts across distributed infrastructure through MCP tools.ISC