MS-Agent

An MCP-enabled framework for research, code, document, finance, and video workflows.

Stars
★ 4.4k
Last updated
2d ago
License
Apache-2.0
Primary language
Python

At a glance

Works with
Universal · cross-platformOpenAI API · Claude API (Partial support)
You'll need
Python >=3.10ModelScope API keyDockerShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A Python developer who needs asynchronous chat with tools exposed by a self-hosted or ModelScope MCP endpoint can build on LLMAgent.
Main limitation
The default inference path depends on ModelScope API access and MODELSCOPE_API_KEY; the memory example additionally relies on DashScope because ModelScope API-Inference does not yet provide embeddings.

What does this agent do, and when should you use it?

MS-Agent is a lightweight Python framework for autonomous exploration and complex task execution. Its documented entry points include MCP-configured `LLMAgent`, `AgentLoader`, and the `ms-agent` CLI for project workflows. The repository packages Agentic Insight deep research, Doc Research, Code Genesis, FinResearch, and Singularity Cinema, with a React/FastAPI WebUI using real-time WebSocket communication. Its Agent Skills module implements the Anthropic Agent Skills protocol with hybrid retrieval, dependency-aware DAG execution, progressive loading, and controlled execution. Depending on the workflow, it produces research reports, document-analysis results, software projects, or short videos and may require model, search, or Docker services.

After installation, developers can configure a streamable HTTP MCP server in mcpServers, instantiate LLMAgent(mcp_config=mcp), and call await llm_agent.run(...). Agentic Insight v2 assigns research work to a Researcher and tool-augmented Searcher/Reporter sub-agents, persists structured artifacts to disk, and writes reports from an indexed evidence base. Doc Research accepts multiple files or URLs, analyzes them, and produces text-and-image Markdown reports; its release notes also list HTML, PDF, PPTX, and DOCX export. Code Genesis runs through ms_agent/cli/cli.py run --config projects/code_genesis, using either a seven-agent or four-agent pipeline to move from requirements through implementation and refinement, with code written to output. FinResearch uses DagWorkflow to coordinate collection, analysis, and aggregation, while processing data in an isolated Docker sandbox.

  1. A Python developer who needs asynchronous chat with tools exposed by a self-hosted or ModelScope MCP endpoint can build on LLMAgent.
  2. A research team that needs evidence-grounded reports, disk-persisted artifacts, and concurrent specialist agents can run Agentic Insight v2.
  3. An engineering team turning a natural-language brief into a static homepage or fuller software project can use the standard or simplified Code Genesis workflow.
  4. An analyst investigating uploaded files and URLs can use Doc Research to produce a Markdown research report.
  5. A market researcher covering mainland China, Hong Kong, or U.S. equities can use FinResearch for financial data, news/sentiment research, and report generation.
  6. A content team that wants a short video from a sentence or knowledge document can use Singularity Cinema for scripting, storyboards, voiceover, charts, subtitles, and generation.

How do you install or deploy this agent?

For base functionality:

pip install ms-agent

For deep-research functionality:

pip install 'ms-agent[research]'

Or install from source:

git clone https://github.com/modelscope/ms-agent.git
cd ms-agent
pip install -e .

The README specifies Python >=3.10. The default ModelScope inference path requires MODELSCOPE_API_KEY; the memory example additionally requires mem0ai and DASHSCOPE_API_KEY.

How do you use this agent?

Set credentials for the default inference path:

export MODELSCOPE_API_KEY={your_modelscope_api_key}

Create an MCP configuration with mcpServers, instantiate LLMAgent(mcp_config=mcp), and invoke await llm_agent.run('Introduce modelscope.cn') from asyncio.run(main()). To launch the WebUI:

ms-agent ui

It opens at http://localhost:7860 by default. A first Code Genesis invocation is:

PYTHONPATH=. openai_api_key=your-api-key openai_base_url=your-api-url python ms_agent/cli/cli.py run --config projects/code_genesis --query 'Build a static site to display skills, projects, and contact info' --trust_remote_code true

What are this agent's strengths and limitations?

Pros
  • It combines MCP chat, deep research, document research, code generation, finance research, and video generation as documented projects in one repository.
  • Agentic Insight v2 uses the filesystem for context handoff and an indexed evidence base for report writing, which suits resumable, long-running research.
  • Agent Skills combines FAISS and BM25 retrieval with skill dependency DAGs and progressive resource loading instead of loading all skill material at once.
  • Code Genesis documents both a seven-agent production pipeline and a four-agent prototype pipeline, plus LSP-integrated validation and automated refinement.
  • The React/FastAPI WebUI with WebSockets provides a documented local interactive surface.
Limitations
  • The default inference path depends on ModelScope API access and MODELSCOPE_API_KEY; the memory example additionally relies on DashScope because ModelScope API-Inference does not yet provide embeddings.
  • Workflow requirements vary: Code Genesis, FinResearch, and Singularity Cinema use additional OpenAI, search, or image-generation-related environment variables.
  • Isolated execution for Skills and FinResearch depends on Docker/ms-enclave, adding local deployment and security operations requirements.
  • Some examples require --trust_remote_code true, so adopters must assess the remote-code trust boundary.
  • Versions through v0.8.0 used the modelscope-agent package and modelscope_agent imports, creating a migration consideration for older integrations.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Stars Updated Language Full support on
MS-Agent This agent 48 · Major gaps ★ 4.4k 2d ago Python
Codemini CLI 71 · Some gaps ★ 192 29d ago JavaScript OpenAI API · Claude API
Locally Uncensored 64 · Some gaps ★ 1.8k 1d ago TypeScript OpenAI API · Claude API
Code Puppy 57 · Major gaps ★ 814 4d ago Python Codex · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
48/ 100 5-point scale 2.4 / 5
Trust 10/29
Reliability 8/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

Evidence shows: README mentions Docker sandbox (ms-enclave) and security checks for local execution, but no specific least-privilege strategy; user confirmation is only mentioned in examples (disabling input_callback), not systematically; data flow transparency is limited, no detailed data handling; sensitive data handling not explicit; dependency security not mentioned (no vulnerability scanning); external effects (e.g., network calls) not explicit; rollback mechanism not mentioned; source attribution has copyright notice but not verified. Deductions: lack of concrete implementation details and evidence.

Reliability8 / 14 · 2.9/5

Evidence shows: test file tests/agent/test_partial_round.py demonstrates detailed unit tests covering various interruption scenarios, indicating good internal consistency; dependency availability not explicit, requirements.txt only references framework dependencies; failure messages are reflected in tests (e.g., errored marker), but not comprehensive. Deductions: dependency availability not verified, failure message coverage limited.

Adaptability10 / 18 · 2.8/5

Evidence shows: README describes multiple scenarios (Agent Chat, Deep Research, Code Generation, Video Generation, Agent Skills), audience is developers; capability boundaries are described (e.g., MCP support, multimodal), but trigger precision not detailed; environment fit has installation instructions and Python version requirements. Deductions: trigger precision (e.g., tool call conditions) not detailed.

Convention10 / 18 · 2.8/5

Evidence shows: README structure is clear, with installation, quickstart, feature modules; installation notes are detailed (PyPI and source); naming stability has historical note (renamed from modelscope-agent); examples are rich (code examples); known limitations not explicitly listed; license is Apache-2.0; version changelog is recorded in News section; maintenance responsibility has GitHub Actions and community links. Deductions: known limitations not explicit, naming stability has history but may cause confusion.

Effectiveness7 / 13 · 2.7/5

Evidence shows: output usability has examples (e.g., report links), but output format not detailed; marginal value has distinctive features (e.g., Deep Research ranking), but no comparison with other frameworks; cost-benefit not mentioned token optimization (though mentions reducing token consumption). Deductions: cost-benefit data insufficient.

Verifiability3 / 8 · 1.9/5

Evidence shows: README claims performance (e.g., DeepResearch Bench ranking) with links, but no reproduction steps; cross-source corroboration limited, mainly relying on own docs; fact vs inference not clearly separated. Deductions: lack of independent verification and reproduction details.

Risks and how to mitigate them
  • Publisher identity not verified; treat source with caution.
  • Dependency security not mentioned; recommend checking for vulnerabilities.
  • Sensitive data handling and least privilege lack concrete implementation details.
  • Performance claims (e.g., DeepResearch Bench ranking) lack reproduction steps.
Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision 071b43325c56 New commits since this review; the score may not cover them
See the full review method →

FAQ

Is ModelScope required for basic agent chat?
The README says LLMAgent uses ModelScope's API inference service by default and requires MODELSCOPE_API_KEY. Some project examples use OpenAI API credentials and base URLs, and the release notes also state support for Anthropic API format.
Does Agent Skills execute skill code directly?
The module supports dependency-based DAG execution and retries. The README describes isolated execution in ms-enclave Docker containers as well as controlled local execution with RCE prevention.
What else is needed for FinResearch?
Besides OPENAI_API_KEY and OPENAI_BASE_URL, the full workflow needs either EXA_API_KEY or SERPAPI_API_KEY. The README also shows a reduced DagWorkflow configuration that omits the search engine.
Where are generated outputs stored?
The Code Genesis example writes generated code to the current directory's output folder. Agentic Insight v2 persists structured artifacts to disk for context handoff and resumable runs.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents