r-kagaya
MCP Serverr-kagayapublic

my tiny agents

基于 LLM 和 MCP 协议的轻量级智能代理框架,支持多种工具集成。

Repository Info

3
Stars
2
Forks
3
Watchers
0
Issues
Python
Language
-
License

About This Server

基于 LLM 和 MCP 协议的轻量级智能代理框架,支持多种工具集成。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

My Tiny Agents 🤖

LLMエージェントとMCP(Model Context Protocol)サーバーを組み合わせた軽量なエージェント実装

https://github.com/user-attachments/assets/2b364925-d296-47b2-8d04-3435edee6af3

記事: https://zenn.dev/r_kaga/articles/a52923325f38f9

参考: TinyAgents: A Minimal Experiment with Code Agents and MCP Tools

クイックスタート

# 依存関係のインストール
make install

# エージェントの起動(デフォルトで全サーバーに接続)
make run-agent

含まれるMCPサーバー

サーバー機能主なツール
GitHub TrendsGitHubのトレンドリポジトリ取得fetch_github_trends
Command Executorシステムコマンド実行・ファイル操作execute_command, read_file, list_directory
Web SearchWeb検索・ニュース検索search_web, search_news
Python ExecutorPythonコード実行・分析execute_python, analyze_code
Task Managerタスク管理add_task, list_tasks, complete_task

💡 使用例

Query: フィボナッチ数列の最初の20個を計算して、fibonacci.txtに保存して

📋 Action Plan:
1. Pythonでフィボナッチ数列を計算
2. 結果をfibonacci.txtに保存
3. ファイルの内容を確認

その他の例:

  • GitHubのPythonトレンドを取得して、上位5つをtrends.txtに保存して
  • 現在のディレクトリのPythonファイルを全て分析して
  • "READMEを更新"という高優先度タスクを作成して

設定

環境変数

使用するLLMに応じて設定:

  • OpenAI: export OPENAI_API_KEY="your-api-key"
  • Anthropic: export ANTHROPIC_API_KEY="your-api-key"
  • Google: export GEMINI_API_KEY="your-api-key"

推奨モデル

  • openai/gpt-4.1 (デフォルト)
  • anthropic/claude-3-5-sonnet-20241022
  • gemini/gemini-2.0-flash-exp

開発

# 開発モードでインストール
make dev-install

# 新しいMCPサーバーの作成
# servers/ディレクトリに新しい.pyファイルを作成し、FastMCPを使用

# クリーンアップ
make clean

ライセンス

MITライセンス

Quick Start

1

Clone the repository

git clone https://github.com/r-kagaya/my-tiny-agents
2

Install dependencies

cd my-tiny-agents
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerr-kagaya
Repomy-tiny-agents
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation