Kiota MCP
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., "@Kiota MCP search for APIs related to petstore"
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.
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
Related MCP server: mcp-cli-catalog
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-mcpUsage
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 cancellationRuns
kiota infoto determine required dependenciesReturns 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 buildTest
# Run all tests
npm test
# Watch mode (TDD)
npm run test:watch
# Coverage report
npm run test:coverageLint
npm run lint
npm run lint:fixDocumentation
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
Available Tools
7 toolskiota_client_addB
Add a new API client configuration to the workspace. Creates an entry in kiota-config.json.
Inputs: language (required), clientName (required), openApiPath (required), namespace, +2 more.
kiota_client_editA
Update an existing API client configuration in the Kiota workspace. Allows changing language, output path, or other settings without regenerating code.
Inputs: clientName (required), language, namespace, outputPath, +2 more.
kiota_client_generateA
Generate API client code from a configured client in the Kiota workspace. Automatically uses --ebc flag for error-based cancellation and runs kiota info to determine required dependencies.
Inputs: clientName (required), cleanOutput, refreshDescriptions.
kiota_client_removeA
Remove an API client configuration from the Kiota workspace. Optionally cleans up generated code files.
Inputs: clientName (required), cleanOutput.
kiota_downloadA
Download an OpenAPI specification from a URL to a local file. Validates the downloaded specification.
Inputs: openApiUrl (required), outputPath (required), cleanOutput.
kiota_infoA
Query information about supported languages, their capabilities, and required dependencies for an API.
Inputs: json, language, descriptionPath.
kiota_searchB
Search for API descriptions using Kiota's search functionality. Returns a list of APIs with their names, descriptions, and OpenAPI specification URLs.
Inputs: searchTerm (required), clearCache.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Each tool performs a distinct operation: searching APIs, downloading specs, adding/editing/generating/removing clients, and querying language info. There is no overlap in functionality between tools.
Naming consistently uses the 'kiota_' prefix, with a 'client_' sub-namespace for client operations. However, general verbs like 'search', 'download', and 'info' are not preceded by a domain noun, creating a slight inconsistency with the noun-verb pattern used for client tools.
Seven tools is well-scoped for the Kiota workflow, covering all major steps from API discovery to code generation without unnecessary bloat.
The set covers search, download, client lifecycle (add/edit/generate/remove), and info, but lacks a way to list existing client configurations. This is a notable gap that could force agents to guess or manipulate config files directly.
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that wraps the Riza Code Interpreter API and presents endpoints as individual tools.13-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that publishes CLI tools on your machine for discoverability by LLMs4 npm1MIT
- AlicenseCqualityDmaintenanceMCP server that turns OpenAPI specs into tools and calls API15 npm5MIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1-