Kiota MCP
MCP server that exposes all Kiota CLI commands as MCP tools for API client generation.
README
Kiota MCP Server
MCP server that exposes all Kiota CLI commands as MCP tools for API client generation.
Overview
The Kiota MCP Server provides a Model Context Protocol interface to the Kiota CLI, enabling AI assistants and MCP clients to:
- ๐ Search for API descriptions
- โฌ๏ธ Download OpenAPI specifications
- โ๏ธ Manage client configurations (add, edit, remove)
- ๐ Generate type-safe API client code with automatic dependency detection
- โน๏ธ Query language support and dependency information
Prerequisites
Before using the Kiota MCP Server, ensure you have:
- Node.js v20 LTS or higher
- MCP-compatible client (e.g., Claude Desktop, MCP Inspector)
Note: Kiota CLI is bundled as a dependency and will be installed automatically. No separate installation required.
Installation
npm install kiota-mcp
Usage
As MCP Server
Configure in your MCP client settings (e.g., Claude Desktop):
{
"mcpServers": {
"kiota": {
"command": "npx",
"args": ["kiota-mcp"]
}
}
}
Available Tools
The server exposes 7 MCP tools corresponding to Kiota CLI commands:
kiota_search- Search for API descriptionskiota_download- Download OpenAPI specificationskiota_client_add- Add new client configurationkiota_client_edit- Update existing client configurationkiota_client_generate- Generate API client code (with automatic--ebcflag)kiota_client_remove- Remove client configurationkiota_info- Query language support and dependencies
Quick Start
1. Search for an API
{
"tool": "kiota_search",
"params": {
"searchTerm": "GitHub"
}
}
2. Download OpenAPI Specification
{
"tool": "kiota_download",
"params": {
"openApiUrl": "https://api.github.com/openapi.json",
"outputPath": "./github-api-spec.json"
}
}
3. Add Client Configuration
{
"tool": "kiota_client_add",
"params": {
"clientName": "github-api",
"openApiPath": "./github-api-spec.json",
"language": "typescript",
"outputPath": "./generated/github"
}
}
4. Generate Client Code
{
"tool": "kiota_client_generate",
"params": {
"clientName": "github-api"
}
}
The tool automatically:
- Uses
--ebcflag for error-based cancellation - Runs
kiota infoto determine required dependencies - Returns installation commands for dependencies
OpenAPI Requirements
The Kiota MCP Server works with:
- โ OpenAPI 3.0.x and 3.1.x specifications
- โ JSON and YAML formats
- โ Local file paths or HTTPS URLs
- โ ๏ธ Maximum file size: 10MB
Supported Languages
- TypeScript
- JavaScript
- C#
- Java
- Python
- Go
- PHP
- Ruby
- Swift
Query available languages with:
{
"tool": "kiota_info",
"params": {}
}
Environment
The server automatically sets KIOTA_CONFIG_PREVIEW=true for all Kiota CLI operations, enabling preview features.
Development
Build
npm run build
Test
# Run all tests
npm test
# Watch mode (TDD)
npm run test:watch
# Coverage report
npm run test:coverage
Lint
npm run lint
npm run lint:fix
Documentation
Architecture
- TypeScript 5.7+ with strict mode
- Vitest for testing (TDD workflow)
- MCP SDK for protocol implementation
- Kiota CLI delegation (no reimplementation)
License
MIT
Contributing
See CONTRIBUTING.md for development guidelines.
Constitution
This project follows strict development principles documented in .specify/memory/constitution.md:
- ๐ฏ OpenAPI-First Architecture
- ๐ TypeScript & Modern Tooling
- ๐งช Test-Driven Development (TDD) - NON-NEGOTIABLE
- ๐ Documentation Excellence
- ๐ค User-Provided Specifications
- ๐ป Local MVP Server
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.