Token导航 LogoToken导航TokenDH.com
Ollama With MCP logo
AI代理stdio官方级别未说明来源级核验

Ollama With MCP

MCP Server

一个基于Ollama、FastAPI和MCP微服务的本地化AI代理平台,提供聊天协调、天气查询、地理编码和搜索等功能。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
AI代理Python工作流自动化

安装说明

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

作者 / 组织

sankar-ramamoorthy

提供方

sankar-ramamoorthy

最后核验

2026/5/17 20:23

运行时

Python

快速接入

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

命令预览

uv run pytest

详细介绍

Ollama+MCP试剂系统

使用模块化AI Agent平台 奥利玛(问题3:4B) + FastMCP工具 + 快速API + Docker Compose.

一个完全本地的、无框架的ReAct风格的AI代理,使用Ollama、FastAPI和MCP微服务(天气、搜索、地理编码、日期时间)。

注:该项目是在人工智能工具(ChatGPT、Perplexy.AI、DuckDuckGo AI、谷歌搜索)的帮助下快速开发的,在适度的硬件上实现了高效的设计、文档和多服务编排。

🎯 特性

  • 聊天编排器:LLM决定工具→ 执行→ 格式化自然响应
  • 日期时间MCP:“今天几号?”→ datetime-mcp:50051
  • 天气MCP“达拉斯的天气?”→ weather-mcp:50053 → 开放天气
  • 搜索MCP:DDGS/SearxNG集成(端口50052)
  • 地理编码MCP:天气地理编码支持(端口50054)
  • 🎨 Gradio用户界面: http://localhost:7860
  • 🚀 生产准备就绪:Docker化、uv依赖管理
服务端口状态描述
后端编排器8000FastAPI+LLM工具决策+MCP执行
日期时间MCP50051“今天几号?”→ UTC ISO日期时间
天气MCP50053“达拉斯的天气?”→ 通过地理编码打开Meteo
地理编码MCP50054地址→ lat/lon(提名,按天气使用)
搜索MCP50052⚠️SearxNG(计划:DDGS更换)
Gradio用户界面7860Web界面
SearxNG8181搜索后端

🚀 快速开始

# Clone & start
git clone 
cd ollama-with-mcp
docker compose up -d

# Backend API ready
curl -X POST http://localhost:8000/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "What is today'\''s date?"}'

答复: "Today's date is November 30, 2025."

______________________________________________________________________

🛠️ API终点

端点目的示例
POST /chat主编排器{"message": "Weather in Dallas?"}
POST /datetime/get直接日期时间返回UTC ISO日期时间
POST /weather直接天气{"location": "Dallas"}
GET /health系统状态健康检查所有服务

🏗️ 建筑

User → FastAPI (/chat) → LLM Decision → MCP Tool → LLM Synthesis → Response
                    ↓
              orchestrator.py orchestrates it all

______________________________________________________________________

🐳 Docker编写服务

服务端口用途
backend8000FastAPI编排器
datetime-mcp50051日期/时间工具✅
weather-mcp50053天气工具✅
searchxng50052网络搜索
frontend7860Gradio用户界面
searchxng_svc8181SearxNG后端

📚 发展

# Backend (uv)
cd backend
uv sync
uv run pytest

# MCP Servers (uv)  
cd mcp-servers/datetime
uv sync
uv run python datetime_mcp/server.py

______________________________________________________________________

🙏 致谢


---

## Acknowledgments & Credits

* **AI Assistance:** The README, documentation, and several project markdown files were created with extensive help from **ChatGPT (Free Version)**, along with supplementary support from **Perplexity.ai** (free version) and AI features from **DuckDuckGo** and **Google Search**.
* **Rapid Development on Modest Hardware:** The project was developed on a **HP ENVY x360 laptop (Intel i7-8565U, 8 GB RAM, Windows 11 Home)** in just **4 days**,(during thanksgiving break) ,  demonstrating efficient resource usage.
* **Productivity Enhancement:** AI tools helped streamline development, maintain GitHub issues and milestones, and ensure adherence to the project plan and schedule.
* **Open-Source Resources:** This project leverages existing repositories and tools, including:

  *  for container orchestration
  * [FastMCP](https://github.com/your-link) for MCP server infrastructure
  * [Open-Meteo](https://open-meteo.com/) for weather APIs
  * [Nominatim](https://nominatim.org/) for geocoding
  * My **previous repositories** for reusable utilities and code patterns

> ⚡ *Note:* This project was built with AI-assisted development to maximize efficiency while maintaining a clean architecture and robust multi-service deployment.

---

目录标签

目录标签

AI代理Python工作流自动化本地部署本地化服务微服务架构聊天协调天气查询

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP