OpenTelemetry Documentation MCP Server
Uses Google Custom Search API to enable search functionality across OpenTelemetry documentation with configurable result limits.
Provides tools to access and search OpenTelemetry documentation, allowing users to fetch documentation pages in markdown format and search for specific content about tracing, metrics, instrumentation, and SDK configuration.
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., "@OpenTelemetry Documentation MCP Server search for how to instrument Python applications with OpenTelemetry"
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.
OpenTelemetry Documentation MCP Server
Model Context Protocol (MCP) server for OpenTelemetry Documentation
This MCP server provides tools to access OpenTelemetry documentation and search for content using Google Custom Search.
Acknowledgements
This project is based on aws-documentation-mcp-server by Amazon Web Services, licensed under the Apache License 2.0.
Related MCP server: DocumentSearch MCP
Features
Read Documentation: Fetch and convert OpenTelemetry documentation pages to markdown format
Search Documentation: Search OpenTelemetry documentation using Google Custom Search
Prerequisites
Required Components
Docker installed on your system
Internet access to pull dependencies and access OpenTelemetry documentation
Google API Key Setup
To use the search functionality, you must obtain a Google API key:
Visit the Google Cloud Console (https://console.cloud.google.com/apis/credentials)
Create a new API key for the Custom Search API
Add this API key to your MCP configuration as shown in the installation section
Without a valid Google API key, the search_documentation tool will not function properly.
Installation
Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit ~/.aws/amazonq/mcp.json):
{
"mcpServers": {
"opentelemetry-documentation-mcp-server": {
"command": "uvx",
"args": ["git+https://github.com/ryu1maniwa/opentelemetry-documentation-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"GOOGLE_API_KEY": "YOUR_GOOGLE_API_KEY"
},
"disabled": false,
"autoApprove": []
}
}
}or docker after a successful docker build -t opentelemetry-documentation-mcp-server .:
{
"mcpServers": {
"opentelemetry-documentation-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env",
"FASTMCP_LOG_LEVEL=ERROR",
"--env",
"GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY",
"opentelemetry-documentation-mcp-server:latest"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}Basic Usage
Example:
"look up documentation on OpenTelemetry tracing concepts. cite your sources"
"search OpenTelemetry documentation for information about metrics and instrumentation"
"find documentation about OpenTelemetry SDK configuration"
Tools
read_documentation
Fetches a OpenTelemetry documentation page and converts it to markdown format.
read_documentation(url: str) -> strsearch_documentation
Searches OpenTelemetry documentation using Google Custom Search.
search_documentation(search_phrase: str, limit: int) -> list[dict]Google Custom Search Integration
This server uses Google Custom Search to provide search functionality for OpenTelemetry documentation. The Custom Search Engine ID (cx) used is the one used by opentelemetry.io itself:
Custom Search Engine ID:
015faf7de29c34606
API Limits
The Google Custom Search API has the following limits:
Free tier: 100 queries per day
$5 per 1000 queries after that
Maximum of 10 results per query
Available Tools
2 toolsread_documentationA
Fetch and convert a OpenTelemetry documentation page to markdown format.
Usage
This tool retrieves the content of a OpenTelemetry documentation page and converts it to markdown format. For long documents, you can make multiple calls with different start_index values to retrieve the entire content in chunks.
URL Requirements
Must be from the opentelemetry.io domain
Must be a documentation page
Example URLs
Output Format
The output is formatted as markdown text with:
Preserved headings and structure
Code blocks for examples
Lists and tables converted to markdown format
Handling Long Documents
If the response indicates the document was truncated, you have several options:
Continue Reading: Make another call with start_index set to the end of the previous response
Stop Early: For very long documents (>30,000 characters), if you've already found the specific information needed, you can stop reading
Args: ctx: MCP context for logging and error handling url: URL of the OpenTelemetry documentation page to read max_length: Maximum number of characters to return start_index: On return output starting at this character index
Returns: Markdown content of the OpenTelemetry documentation
Inputs: url (required), max_length, start_index. Returns: result
search_documentationA
Search OpenTelemetry documentation using Google Custom Search.
Usage
This tool searches across OpenTelemetry documentation for pages matching your search phrase. Use it to find relevant documentation when you don't have a specific URL.
Search Tips
Use specific technical terms rather than general phrases
Include OpenTelemetry concepts to narrow results (e.g., "tracing instrumentation" instead of just "tracing")
Use quotes for exact phrase matching (e.g., "SDK configuration")
Include abbreviations and alternative terms to improve results (e.g., "OTEL collector")
API Limits
The search uses Google's Custom Search API which has usage limits:
Free tier: 100 queries per day
Results are limited to 10 per page
Result Interpretation
Each result includes:
rank_order: The relevance ranking (lower is more relevant)
url: The documentation page URL
title: The page title
context: A brief excerpt or summary (if available)
Args: ctx: MCP context for logging and error handling search_phrase: Search phrase to use limit: Maximum number of results to return (will be capped at 10 due to API limitations)
Returns: List of search results with URLs, titles, and context snippets
Inputs: search_phrase (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: 'read_documentation' fetches and converts specific documentation pages to markdown, while 'search_documentation' searches across documentation for relevant pages. There is no overlap in functionality, and an agent can easily differentiate between retrieving known content and discovering unknown content.
Both tools follow a consistent verb_noun pattern with snake_case naming: 'read_documentation' and 'search_documentation'. The verbs ('read' and 'search') are distinct and appropriate for their functions, and the naming scheme is predictable and readable throughout the set.
With only 2 tools, the server feels thin for its purpose of providing OpenTelemetry documentation access. While the tools cover basic retrieval and search, the scope suggests potential for more operations (e.g., listing documentation categories, filtering by version, or handling API interactions), making the count insufficient for a comprehensive documentation server.
The server covers core documentation access with read and search functions, but there are notable gaps. It lacks tools for browsing documentation structure (e.g., listing sections or topics), handling updates or version-specific content, or integrating with other OpenTelemetry resources, which limits agent workflows to basic lookup tasks without broader context.
Maintenance
Related MCP Connectors
Read-only search and Markdown pages from the OpenPlanr docs, for coding agents.
Provides tools for searching Google Workspace documentation and much more.
Provides access to Google's public developer documentation.
Search and read ParadeDB documentation, tutorials, and examples.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables searching and reading OCI documentation using the Oracle Help Center Search API. Provides tools for finding relevant documentation URLs and reading page content.212MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and fetching documentation pages from a wide range of programming languages, frameworks, game engines, and tools. Supports multiple sources and returns relevant documentation snippets.1-
- FlicenseAqualityCmaintenanceEnables AI clients to search live documentation for popular developer libraries and return clean, source-cited summaries via a RAG pipeline.1-
- FlicenseDqualityCmaintenanceEnables users to search and fetch documentation from supported libraries (langchain, llama-index, openai, uv) as clean, readable text, which can be used as context for answering questions.1-