1. Conduid
  2. Developer Tools
  3. Doc2agent
MCP server · Developer Tools

Doc2agent

MCP server: Doc2agent

Unclaimed MIT last commit a year ago devtools
50Fair

Scored 6 months ago · breakdown

About Doc2agent

Doc2agent is an MCP server published by coolkillercat in the Developer Tools category: mCP server: Doc2agent.

The repository has 33 stars and 4 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/coolkillercat/Doc2Agent

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Doc2agent

Powered by Claude · Grounded in docs

I know everything about Doc2agent. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

README

📄➡️🤖 Doc2Agent

title

Doc2Agent is your one-stop pipeline for transforming unstructured REST API documentation into agent-ready Python tools—ready to plug into LLM-based applications. Built with scalability and automation in mind, Doc2Agent bridges the gap between real-world APIs and AI agents.

Tired of wrangling vague docs and inconsistent schemas? Doc2Agent automates the entire pipeline—from extraction and validation to refinement and deployment—so you can focus on building powerful, intelligent agents.


🏭 What Is Doc2Agent?

Real-world APIs are messy. Documentation is often incomplete, outdated, or poorly structured—making direct integration with LLM agents a nightmare.

Doc2Agent offers a scalable, fully automated solution to:

  • 📦 Generate Python-based API tools from natural language docs
  • 🧪 Diagnose and fix tool errors through automated validation
  • 🔁 Refine tools with inferred parameters—no domain knowledge required
  • 🚀 Deploy agents that use these tools directly via MCP or OpenAPI

🧠 Doc2Agent has been shown to improve task success by up to 55%, while cutting cost by 90%, compared to direct API calling (see our paper).

pipeline


✨ Features

  • 🔧 Automated Tool Generation Convert messy API docs into Python functions, fully compatible with LangGraph, LlamaIndex, AutoGen, and more.

  • 🧠 Self-Diagnosis & Refinement Evaluate tool functionality and iteratively fix bugs using a code agent. It even infers missing parameter values!

  • 📚 Knowledge Base Matching Reuse known parameter values and results from other tools to fill gaps in documentation.

  • 🌐 MCP & OpenAPI Deployment Deploy your toolset as a server (MCP) or export as OpenAPI specs for enterprise use.


🚀 Getting Started

1. Setup Environment

Install requirements and add your OpenAI key:

pip install -r requirements.txt

Then update .env:

OPENAI_API_KEY=your_api_key

2. Prepare Your API Docs

Place your HTML/Markdown files in a new folder under:

extractor/apidocs/<your_api_name>

You can download HTML docs using "Save Page As" in your browser.


3. Optional: Add .config (if needed)

Some docs miss critical info like base_url or headers. Add a .config file like:

{
  "base_url": "https://api.example.com",
  "headers": {
    "Authorization": "YOUR_TOKEN"
  },
  "info": {
    "user_id": "123",
    "user_name": "your_name"
  }
}
  • base_url: overwrites the base url. Useful when raw API doc doesn't include base_url
  • headers: will be used in API calling. Put your authentication info here!
  • info: you can define some custimizable parameter values to help with validation and refinement.

4. Generate Tools

Run the tool generator:

python extractor/api_code_generator.py extractor/apidocs

5. Validate & Refine Tools

Automatically verify tool functionality and infer missing values:

python main/validation_and_refinement_main.py

6. Deploy as an MCP Server

Expose your tools via FastMCP:

  • Copy validated tools to:
my_mcp_server/my_mcp_server/MCPTools
  • Use the config:
{
  "mcpServers": {
    "my_custom_mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "PROJECT_PATH/my_mcp_server/my_mcp_server",
        "run",
        "server.py"
      ]
    }
  }
}

📈 Benchmarks & Results

Doc2Agent outperforms direct API calls on WebArena and scientific domains like glycoscience:

Method Avg. Success Rate Cost per Task
Direct API Call 29.2% $1.20
Hybrid Agent 38.9% $1.50
Doc2Agent 45.3% $0.12

Doc2Agent also enables research agents (e.g., glycan databases) with zero manual coding.

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About Doc2agent

How do I install Doc2agent?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Doc2agent safe to use with an AI agent?

Its trust score is 50 out of 100 (fair). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Doc2agent still maintained?

The last commit was a year ago and 2 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.