
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that translates natural language questions into Osquery SQL queries so AI assistants can answer system diagnostic questions about CPU, memory, disk, network, and temperature.
Osquery MCP Server for AI-driven system diagnostics is cataloged as an MCP server attributed to kousen. An MCP server that translates natural language questions into Osquery SQL queries so AI assistants can answer system diagnostic questions about CPU, memory, disk, network, and temperature. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Osquery MCP Server for AI-driven system diagnostics are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It runs in STDIO mode using Spring AI's MCP Server starter, which allows integration with MCP-compatible tools such as Claude Desktop.
Yes, the prerequisites require Osquery to be installed with osqueryi available in your PATH.
The server executes system commands with the privileges of the running user, so the README recommends minimal privileges, query filtering or whitelisting, and logging.
README.md · d86593d82366 · 采集于 2026-11-13 12:15:09 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A complete implementation for integrating Osquery with AI assistants, providing three approaches: an MCP server for Claude Desktop, a Spring AI client, and a Claude Code skill for direct CLI usage.
This project enables AI assistants to answer system diagnostic questions like "Why is my fan running so hot?" or "What's using all my memory?" by translating natural language into Osquery SQL queries.
Three ways to use osquery with AI:
| Approach | Best For | How It Works |
|---|---|---|
| MCP Server | Claude Desktop | Spring Boot server communicates via MCP protocol |
| Spring AI Client | Programmatic access | CLI client using Spring AI's MCP auto-configuration |
| Claude Code Skill | Claude Code CLI | Direct osqueryi execution via Bash, no server needed |
The stack was upgraded to the latest Spring ecosystem with GraalVM native image support:
| Component | Previous | Current |
|---|---|---|
| Spring Boot | 3.5.0 | 4.0.3 |
| Spring AI | 1.0.0 | 2.0.0 |
| Java | 21 | 25 (GraalVM CE) |
| Jackson | 2.x (com.fasterxml) | 3.x (tools.jackson) |
| Dependency mgmt | io.spring.dependency-management plugin | Gradle platform() BOMs |
| Native image | Not supported | GraalVM native binary (~36ms startup) |
| System health | Sequential (5 queries) | Parallel via virtual threads |
GraalVM Native Image: The MCP server compiles to a ~62MB native binary that starts and responds to MCP requests in ~36ms. This is critical for the voice interface use case — when a JavaFX voice client launches the server, it needs to respond instantly.
Virtual Threads: getSystemHealthSummary() now runs all 5 diagnostic queries (CPU, memory, disk, network, temperature) in parallel using Executors.newVirtualThreadPerTaskExecutor() with CompletableFuture.supplyAsync(). This reduces response time from the sum of all queries to the duration of the slowest single query.
Jackson 3 Migration (client only): Spring Boot 4 ships Jackson 3 with new Maven coordinates (tools.jackson.core instead of com.fasterxml.jackson.core), immutable builders (JsonMapper.builder().build() instead of new ObjectMapper()), and unchecked exceptions (JacksonException instead of JsonProcessingException).
Gradle Build Changes: Spring Boot 4 drops the io.spring.dependency-management plugin. Dependencies are now managed with Gradle-native platform() BOMs. Spring AI 2.0.0 is GA on Maven Central, so no milestone repository is required.
SyncMcpToolCallbackProvider injectionJsonMapper builder pattern and modern APIsosqueryi directly via Bashsdk install java 25.0.2-graalceosqueryi available in your PATHgit clone https://github.com/yourusername/OsqueryMcpServer.git
cd OsqueryMcpServer
./gradlew build # Build server + client, run all tests
./gradlew bootJar # Create executable JAR
cd client-springai && ../gradlew build # Build Spring AI client
sdk use java 25.0.2-graalce
./gradlew nativeCompile --no-configuration-cache
# Binary at: build/native/nativeCompile/OsqueryMcpServer
# JVM mode
./gradlew bootRun
# Native mode (instant startup)
./build/native/nativeCompile/OsqueryMcpServer
# Natural language queries
cd client-springai && ../gradlew run --args="\"What's using my CPU?\""
# Interactive mode
../gradlew run --args="--interactive"
# Custom SQL queries
../gradlew run --args="\"SELECT name FROM system_info\""
# Run test suite
./test-client-springai.sh
./gradlew :test # Server tests
./gradlew :client-springai:test # Spring AI client tests
./gradlew build # All tests
The server operates in STDIO mode and provides eleven specialized tools for system diagnostics:
The client provides multiple ways to interact with the server:
cd client-springai
../gradlew run --args="\"What's using my CPU?\""
../gradlew run --args="\"Show network connections\""
../gradlew run --args="\"Why is my fan running?\""
../gradlew run --args="\"Show system health\""
../gradlew run --args="\"Check for suspicious processes\""
../gradlew run --args="\"Show high disk I/O processes\""
../gradlew run --args="\"SELECT name, pid, cpu_time FROM processes ORDER BY cpu_time DESC LIMIT 5\""
../gradlew run --args="\"SELECT * FROM system_info\""
../gradlew run --args="--interactive"
# Then type queries interactively, 'help' for assistance, 'exit' to quit
The skill activates automatically when you ask system diagnostic questions in Claude Code:
> Why is my computer slow?
> What's using all my memory?
> Show me network connections
> Are there any suspicious processes?
> Why is my fan running?
Option 1: Project-level (included in this repo)
# Already available in .claude/skills/osquery/ when working in this project
Option 2: Personal (works across all projects)
cp -r .claude/skills/osquery ~/.claude/skills/
# Restart Claude Code to load the skill
The skill guides Claude to run osqueryi commands directly:
osqueryi --json "SELECT name, pid, resident_size FROM processes ORDER BY resident_size DESC LIMIT 10"
No server required - Claude executes queries via Bash and interprets the JSON results.
executeOsquery(sql): Execute any valid Osquery SQL querylistOsqueryTables(): Get all available Osquery tables on your systemgetTableSchema(tableName): Discover columns and types for any tablegetHighCpuProcesses(): Find processes consuming the most CPUgetHighMemoryProcesses(): Find processes using the most memorygetHighDiskIOProcesses(): Find processes with high disk read/write activitygetNetworkConnections(): Show active network connections with process infogetTemperatureInfo(): Get system temperature and fan speeds (macOS)getSuspiciousProcesses(): Identify processes with unusual characteristicsgetCommonQueries(): Get example queries for common diagnostic scenariosgetSystemHealthSummary(): Get comprehensive overview of CPU, memory, disk, network, and temperature (runs all queries in parallel via virtual threads)Instead of writing complex SQL, you can now ask natural language questions:
"Why is my computer running slowly?" -> AI uses getHighCpuProcesses() and getHighMemoryProcesses()
"What's connecting to the internet?" -> AI uses getNetworkConnections()
"Why is my fan so loud?" -> AI uses getTemperatureInfo() to check system temps
"Show me all Chrome processes" -> AI uses executeOsquery() with schema discovery
"Give me an overall system health check" -> AI uses getSystemHealthSummary() for comprehensive diagnostics (5 queries run in parallel)
"Is my system compromised?" -> AI uses getSuspiciousProcesses() to check for anomalies
The application is configured through src/main/resources/application.properties:
This server implements the Model Context Protocol (MCP) using Spring AI's MCP Server starter. It can be integrated with AI tools that support MCP, such as:
For Claude Desktop, add to your configuration:
{
"mcpServers": {
"osquery": {
"command": "java",
"args": ["-jar", "path/to/osquery-mcp-server.jar"]
}
}
}
Or with the native binary for instant startup (~36ms):
{
"mcpServers": {
"osquery": {
"command": "path/to/OsqueryMcpServer"
}
}
}
Warning: This server executes system commands with the privileges of the running user. Consider the following security measures:
src/ # MCP Server (Spring Boot 4)
├── main/java/com/kousenit/osquerymcpserver/
│ ├── OsqueryMcpServerApplication.java # Main application
│ └── OsqueryService.java # MCP tools (virtual threads)
└── test/java/com/kousenit/osquerymcpserver/
└── OsqueryServiceTest.java # Server tests
client-springai/ # Spring AI 2.0 MCP Client
├── src/main/java/com/kousenit/osqueryclient/springai/
│ └── SpringAiOsqueryClientApplication.java # CLI application (Jackson 3)
├── src/test/java/com/kousenit/osqueryclient/springai/
│ └── QueryMappingTest.java # Unit tests
├── application.yml # Spring AI configuration
└── test-client-springai.sh # Test runner
.claude/skills/osquery/ # Claude Code Skill
├── SKILL.md # Skill definition & triggers
└── queries.md # Query templates & baselines
build.gradle.kts # Server build (GraalVM native)
The project uses Gradle with platform() BOMs for dependency management (Spring Boot 4 drops the io.spring.dependency-management plugin):
plugins {
java
id("org.springframework.boot") version "4.0.3"
id("org.graalvm.buildtools.native") version "0.10.6" // Server only
}
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:4.0.3"))
implementation(platform("org.springframework.ai:spring-ai-bom:2.0.0"))
// ...
}
./gradlew :test # Server tests
./gradlew :client-springai:test # Spring AI client tests
./gradlew build # All tests
./test-client-springai.sh # Full client test suite
# Requires GraalVM CE 25
sdk install java 25.0.2-graalce
sdk use java 25.0.2-graalce
# Build (takes ~25 seconds)
./gradlew nativeCompile --no-configuration-cache
# Test
./build/native/nativeCompile/OsqueryMcpServer
Note: The --no-configuration-cache flag is required due to a known incompatibility between the GraalVM buildtools plugin 0.10.6 and Gradle 9's configuration cache serialization.
The server includes pre-built queries for common diagnostic scenarios. Use getCommonQueries() to see all available examples:
-- Top CPU consuming processes
SELECT name, pid, uid, (user_time + system_time) AS cpu_time FROM processes ORDER BY cpu_time DESC LIMIT 10;
-- Memory usage by process
SELECT name, pid, resident_size, total_size FROM processes ORDER BY resident_size DESC LIMIT 10;
-- Active network connections
SELECT pid, local_address, local_port, remote_address, remote_port, state
FROM process_open_sockets WHERE state = 'ESTABLISHED'
-- Overall system info
SELECT hostname, cpu_brand, physical_memory, hardware_vendor, hardware_model FROM system_info;
-- Recent file changes
SELECT path, mtime, size FROM file WHERE path LIKE '/Users/%'
AND mtime > (strftime('%s', 'now') - 3600)
The AI can use these as templates or call the specialized diagnostic tools directly.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License. See License for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Osquery MCP Server for AI-driven system diagnostics from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/osquerymcpserver)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.