Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.64 KB

README-en.md

File metadata and controls

64 lines (53 loc) · 1.64 KB

Bilibili MCP

English 中文文档 日本語

Introduction

This is a Bilibili video search server based on the Model Context Protocol (MCP). The server provides a simple API interface that allows users to search for video content on Bilibili. It includes LangChain usage examples and test scripts.

Acknowledgements

Features

  • Bilibili video search
  • Support for paginated queries
  • Returns video information (title, author, view count, duration, etc.)
  • Standardized interface based on the MCP protocol

System Requirements

  • Node.js >= 20.12.0

Quick Start

If you want to run the LangChain example, please configure the LLM model first by modifying the .\example.ts file.

const llm = new ChatOpenAI({
  modelName: "gpt-4o-mini",
  temperature: 0,
  openAIApiKey: "your_api_key", // Replace with your model's API key
  configuration: {
    baseURL: "https://www.api.com/v1", // Replace with your model's API address
  },
});

bun:

```bash
bun i
bun index.ts
# Test script
bun test.js
# MCP Inspector
bun run inspector
# Run LangChain example
bun build:bun
bun example.ts

npm:

npm i
npm run start
# Test script
npm run test
# MCP Inspector
npm run inspector
# Run LangChain example
npm run build
node dist/example.js

SCREENSHOTS