
bh openapi mcp
提供基于 OpenAPI 的 MCP 服务器,支持模式发现和自省。
Repository Info
About This Server
提供基于 OpenAPI 的 MCP 服务器,支持模式发现和自省。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
bh-openapi-mcp
MCP server to get openapi schemas
Overview
This project provides a Model Context Protocol (MCP) server for OpenAPI-based schemas. It enables tools and resources to be exposed via a standardized interface, supporting schema discovery and introspection.
Features
- MCP server implementation using
@modelcontextprotocol/sdk - Tool for retrieving YAML schema definitions by name and project from a private GitHub repository
- TypeScript-based codebase
- Fetching schemas directly from
@behavio/behavio-api-docsrepository to keep the data up-to-date
Project Structure
src/- Source code for the MCP server and helpersbuild/- Compiled outputpackage.json- Project configuration and dependencies
Getting Started
VS Code Settings
"mcp": {
"servers": {
"bh-openapi-mcp": {
"type": "stdio",
"command": "npx",
"args": ["tsx", "[ABSOLUTE_PATH]/src/index.ts"],
"env": {
"GITHUB_TOKEN": "YOUR_GH_TOKEN"
}
}
}
},
Prerequisites
- Node.js (v16+ recommended)
- pnpm or npm
Install dependencies
pnpm install
# or
npm install
Build the project
pnpm build
# or
npm run build
Start the server
pnpm start
# or
npm start
Usage
The server exposes a tool called get-schema-info that allows you to retrieve the YAML definition of a schema by name. This is useful for schema discovery and documentation purposes.
Development
- TypeScript is used for type safety.
Quick Start
Clone the repository
git clone https://github.com/mholyjr/bh-openapi-mcpInstall dependencies
cd bh-openapi-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.