Cover image
Try Now
2025-04-06

用于Smithery注册表的OpenAPI服务器,提供对MCP服务器的访问权限

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Smithery Registry OpenAPI Server

This server provides an OpenAPI interface to the Smithery Registry API, allowing you to search and obtain launch configurations for Model Context Protocol (MCP) servers.

Features

  • List available MCP servers with advanced filtering
  • Get detailed server information including connection configurations
  • Generate WebSocket URLs with base64-encoded configurations
  • Authentication via bearer token
  • Compatible with OpenAPI tools and clients

Authentication

All requests to the Smithery Registry API require authentication:

  • You need a bearer token in the Authorization header
  • Format: Authorization: Bearer your-api-token
  • Obtain a token from your Smithery user profile under API keys

Usage

Installation

pip install -r requirements.txt

Running the server

uvicorn main:app --host 0.0.0.0 --port 8000 --reload

API Endpoints

  1. GET /servers - List available MCP servers

    • Query parameters:
      • q: Search query (semantic search)
      • page: Page number (default: 1)
      • pageSize: Items per page (default: 10)
    • Advanced filtering syntax in the q parameter:
      • Text search: "machine learning"
      • Owner filter: owner:username
      • Repository filter: repo:repository-name
      • Deployment status: is:deployed
      • Example: "owner:smithery-ai repo:fetch is:deployed machine learning"
  2. GET /servers/{qualified_name} - Get detailed information about a specific server

  3. POST /create-websocket-url - Create a WebSocket URL with encoded config

    • Request body:
      {
        "qualifiedName": "username/repository",
        "config": {
          // Configuration object matching the server's schema
        }
      }
      

WebSocket Connection

For direct WebSocket connections to MCP servers:

  • URL Format: https://server.smithery.ai/${qualifiedName}/ws?config=${base64encode(config)}
  • Config must comply with the server's configSchema
  • Config is base64-encoded JSON

Integration with OpenAPI Tools

This server is designed to be compatible with any OpenAPI-compliant tools and frameworks. The API follows RESTful conventions and provides detailed OpenAPI documentation at the /docs endpoint when running.

TypeScript SDK Usage

For use with the Smithery TypeScript SDK:

import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js"
import { createSmitheryUrl } from "@smithery/sdk/config.js"

const url = createSmitheryUrl(
  "https://your-smithery-mcp-server/ws",
  {
    // config object matching schema
  },
)
const transport = new WebSocketClientTransport(url)

License

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

    Reviews

    5 (1)
    Avatar
    user_0VVM1Bk5
    2025-04-17

    As a devoted MCP application user, I've found smithery-openapi-server, created by chinpeerapat, to be an outstanding tool for effortlessly generating and managing OpenAPI specifications. Its seamless integration, user-friendly interface, and robust functionality make it a must-have for developers looking to streamline their API development process. Highly recommended!