Appium MCP documentation query tools and indexed documentation assets.
This package provides an Appium documentation plugin for MCP servers. It exposes tools that can answer Appium documentation questions and return ordered setup or troubleshooting guidance from the vendored Appium skills content.
appium_documentation_query: queries indexed Appium documentation with RAG.appium_skills: returns ordered Appium setup or troubleshooting skills for Android and iOS local environments.
Install this package alongside appium-mcp in the server project that starts
your MCP server.
npm install appium-mcp
npm install @appium/mcp-documentationWhen developing against a local checkout, build this package first and install it by path from the appium-mcp server project:
cd /path/to/appium-mcp-documentation
npm install
npm run build
cd /path/to/your-appium-mcp-server
npm install /path/to/appium-mcp-documentationRegister the documentation plugin when creating the Appium MCP server:
import { createAppiumMcpServer } from 'appium-mcp/core';
import { AppiumDocumentation } from '@appium/mcp-documentation';
const server = createAppiumMcpServer({
plugins: [new AppiumDocumentation()],
});
await server.start({
transportType: 'stdio',
});For HTTP stream transport:
await server.start({
transportType: 'httpStream',
httpStream: {
endpoint: '/sse',
port: 8080,
},
});Once registered, the Appium MCP server exposes the normal Appium automation
tools plus appium_documentation_query and appium_skills.
Note that the default appium-mcp server enables the documentation plugin if available, so you may not need to explicitly register it.
You can also use the documentation query API directly:
import {
answerAppiumQuery,
initializeAppiumDocumentation,
} from '@appium/mcp-documentation';
await initializeAppiumDocumentation();
const result = await answerAppiumQuery({
query: 'How do I configure UiAutomator2 capabilities?',
});
console.log(result.answer);Install dependencies:
npm installBuild the package:
npm run buildRun tests and lint:
npm test
npm run lintRebuild the documentation index:
npm run build
npm run index-docsQuery the built index from the command line:
npm run query-docs -- "How do I start an Appium session?"The runtime dependencies are the packages used by the shipped tools and RAG
implementation. fastmcp is a development dependency here because this package
only imports its types.
npm test checks deterministic implementation correctness (indexing, chunking,
tools, and schemas). npm run eval-docs evaluates retrieval quality against the
golden dataset using the production retriever, without an LLM/API credential.
npm run build
npm run eval-docs
npm run eval-docs -- --strict # nonzero exit on source/evidence failuresThe first eval may download the local embedding model and build its cache. JSON
reports go to src/scripts/eval-results/; the default command reports quality
misses without failing the process. See the evaluation design
for metrics, dataset maintenance, CI prerequisites, and future query-generation,
answer, and real-client evaluation layers.
CI runs implementation tests and retrieval evaluation on PRs to main, including
Dependabot updates. Retrieval runs against both the packaged index and an index
rebuilt from the PR's documentation submodule commits. Results and failures appear
in the job summary and downloadable artifacts. Execution/indexing errors fail CI;
retrieval quality misses are currently observational. See the
CI design for details.