- xmp4 — Semantic Code Knowledge for Your Stack
xmp4 — Semantic Code Knowledge for Your Stack
What is xmp4?
xmp4 is a hosted MCP server (mcp.example4.ai) that exposes 800+ pre-indexed OSS libraries as a semantic code knowledge base. AI agents (Claude, Cursor, Continue, Cline…) connect over Streamable HTTP — no API key, no install — and ask symbol-level questions in a single call.
Why
When an AI agent needs to understand how a third-party library is actually used (real source, who calls what, how it is tested), the typical workflow is git clone + grep + read. That blows up the context window. xmp4 returns the answer pre-indexed in a single MCP call. Token-savings benchmark: 81–87% vs grep (see lsai-protocol/RESULTS.md).
Tools (17)
xmp4_search— find symbols by name across a projectxmp4_info— signature + docs + location of a symbolxmp4_source— real source code of a symbolxmp4_outline— file structure with names and signaturesxmp4_usages— where a symbol is used (grouped by file)xmp4_callers/xmp4_callees— call graphxmp4_hierarchy— inheritance / interface chainsxmp4_tests_for— tests that exercise a symbolxmp4_grep— text patterns inside an indexed projectxmp4_view— read a file by pathxmp4_deps— declared dependenciesxmp4_projects— discover available librariesxmp4_symbol_at— symbol at a file:line:colxmp4_guide/xmp4_server— onboarding
Languages
Tier 1: C#, Java, TypeScript, Python, Rust, PHP Tier 2: Go, JavaScript, Dart, Ruby, C++
Endpoint
https://mcp.example4.ai/mcp
Streamable HTTP. No API key. Already on the Official MCP Registry as ai.example4/xmp4, Smithery, Cursor Directory, PulseMCP.
Privacy
- Aggregate query logs only (symbol names, repo filters)
- No content of user codebases (read-only on indexed OSS)
- No PII, no user identifiers
Demand-driven coverage
Missing a library? Library coverage is grown based on aggregate AI-agent demand: we log what is searched-but-missing and add the most-asked. Currently 800+ OSS projects across 11 languages.
Server Config
{
"mcpServers": {
"xmp4": {
"type": "http",
"url": "https://mcp.example4.ai/mcp"
}
}
}