MCP.so
ログイン

Mc Server Demo MCP Server

@PanGan21

基本情報

カテゴリ

その他

ライセンス

MIT

トランスポート

stdio

作者

PanGan21

Mc Server Demo MCP Server について

Mini mcp server implementation

Mc Server Demo MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-demo-pangan21": {
      "command": "${workspaceFolder}/.venv/bin/python",
      "args": [
        "main.py"
      ]
    }
  }
}

Mc Server Demo MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is mc-server-demo?

mc-server-demo is a Model Context Protocol (MCP) server that retrieves the latest documentation for a queried library. It uses the Serper API to perform Google searches for the relevant documentation. The server is designed for developers who want to access library documentation programmatically via MCP tools, either for debugging or integration into IDEs like Cursor.

How to use mc-server-demo?

To use mc-server-demo, first set a SERPER_API_KEY in a .env file. Then create a virtual environment, activate it, and install dependencies with pip install -r requirements.txt. Run the server using the MCP inspector: npx @modelcontextprotocol/inspector python main.py. The inspector lists available tools, including get_docs, which accepts query strings. Alternatively, integrate the server with a client like Cursor IDE by adding a custom MCP server configuration that points to the Python interpreter and main.py.

Key features of mc-server-demo

  • Retrieves the latest documentation for a queried library.
  • Uses the Serper API for Google search.
  • Exposes a single MCP tool: get_docs.
  • Can be debugged via the MCP inspector.
  • Integrates with Cursor IDE as a custom MCP server.

Use cases of mc-server-demo

  • Fetching library documentation directly from within a development environment.
  • Powering AI assistants that answer library documentation queries.
  • Automating documentation lookups in CI/CD or documentation workflows.

よくある質問

1

What API key is required?

The server requires a Serper API key, which must be set in a `.env` file as `SERPER_API_KEY`.

2

How do I run the server for debugging?

Run the MCP inspector command: `npx @modelcontextprotocol/inspector python main.py`, then visit the local inspector URL displayed in the terminal.

3

What tool is available for querying documentation?

The server provides a single tool called `get_docs` that accepts a query string.

4

How do I integrate mc-server-demo with Cursor IDE?

In Cursor, go to AI settings → Custom MCP Server, and add a configuration with the command `"${workspaceFolder}/.venv/bin/python"` and arguments `["main.py"]`.

5

What license is mc-server-demo released under?

The project is licensed under the MIT License.

コメント

「その他」の他のコンテンツ