Token导航 LogoToken导航TokenDH.com
LLM MCP Rag Py logo
运维云端stdio官方级别未说明来源级核验

LLM MCP Rag Py

MCP Server

一个基于Python的LLM-MCP-RAG实现,支持通过OpenAI API和硅基流动API进行聊天和嵌入功能,适用于自然语言处理和知识增强生成场景。

工具数

0

提示词数

0

GitHub Stars

4

资源数

0
自然语言处理PythonAPI集成API密钥

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

JinLiye

提供方

JinLiye

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirement.txt

详细介绍

LLM-MCP-RAG-py

Dependency

pip install -r requirement.txt

Also need to install

How To Run

example of .env

    OPENAI_API_KEY=xxx
    OPENAI_BASE_URL=https://openrouter.ai/api/v1

    EMBEDDING_KEY=xxx
    EMBEDDING_BASE_URL=https://api.siliconflow.cn/v1
  • To start the main program, use the following command:
    python ./src/main.py

To test the chat functionality module, run:

    python ./src/test_chat.py

To test the MCP client functionality, execute:

    python ./src/testMCPClient.py

To test the Agent module functionality, run:

    python ./src/Agent.py

Note: When testing the Agent, make sure to set up the MCP client correctly. Modify the directory path r'C:\Users\32114\Desktop\code\llm-mcp-rag-py\output' to suit your needs, allowing access to the appropriate directory.

LLM

MCP

RAG

- 译文: https://www.yuque.com/serviceup/misc/cn-retrieval-augmented-generation-overview

Acknowledgments

This project is based on the work of llm-mcp-rag, which was originally implemented in TypeScript. This implementation has been rewritten using Python

目录标签

目录标签

自然语言处理PythonAPI集成API密钥本地部署知识增强生成Python开发

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP