
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Python library for building agent teams that includes an MCP service exposing tools generated from OpenAPI specifications.
AskTheApi Team Builder is cataloged as an MCP server attributed to asktheapi. A Python library for building agent teams that includes an MCP service exposing tools generated from OpenAPI specifications. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for AskTheApi Team Builder are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports Server-Sent Events (SSE) transport.
Yes, headers such as an Authorization bearer token can be passed when starting the service from a spec.
README.md · b946637c1b92 · Fetched 2026-11-13 11:00:26 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A high-level Python library for building and managing networks of autonomous agents that collaborate to solve complex tasks. It's designed to work seamlessly with APIs defined using the OpenAPI standard. The library provides a clean, type-safe interface for creating, configuring, and running teams of agents, making it easy to orchestrate multi-agent workflows with minimal boilerplate.
🚀 Effortless Agent Network Creation: Quickly build agent networks with custom tools and capabilities based on OpenAPI specifications.
🤝 Team-Based Collaboration: Easily define agent teams with automatic coordination handled by a built-in planning agent.
📡 Streaming Interactions: Stream agent communication in real-time for more dynamic and responsive workflows.
🔧 Built-in HTTP Client: Simplify tool implementation with an integrated HTTP client ready to call external APIs.
✨ Type Safety with Pydantic: Leverage Pydantic models for robust data validation and clear type definitions.
🎯 Clean and Intuitive API: Designed for developers—minimal boilerplate, maximum clarity.
pip install asktheapi-team-builder
Here's how to use the package:
from asktheapi_team_builder import TeamBuilder, Agent, Tool, Message, APISpecHandler
from typing import List
async def create_agents_from_spec():
# Initialize handlers
api_spec_handler = APISpecHandler()
# Download and parse OpenAPI spec
spec_content = await api_spec_handler.download_url_spec("https://api.example.com/openapi.json")
# Classify endpoints into logical groups
classification_result = await api_spec_handler.classify_spec(
spec_content
)
# Generate agents for each group
agents = []
for group_spec in classification_result.specs:
agent_result = await api_spec_handler.generate_agent_for_group(
group_spec,
spec_content
)
agents.append(agent_result)
return agents
async def run_agent_team(agents: List[Agent], query: str):
# Initialize team builder
team_builder = TeamBuilder(
model="gpt-4",
model_config={"temperature": 0.7}
)
# Build the team
team = await team_builder.build_team(agents)
# Create messages
messages = [
Message(
role="user",
content=query
)
]
# Run the team with streaming
async for event in team_builder.run_team(team, messages, stream=True):
if isinstance(event, ChatMessage):
print(f"{event.source}: {event.content}")
async def main():
# Create agents from spec
api_agents = await create_agents_from_spec()
# Combine with manual agents
all_agents = [weather_agent] + api_agents
# Run the team
await run_agent_team(
all_agents,
"What's the weather like in London and how might it affect local businesses?"
)
You can configure the team builder with custom headers and model settings:
team_builder = TeamBuilder(
model="gpt-4",
model_config={
"temperature": 0.7,
"default_headers": {
"Authorization": "Bearer your-token",
"Custom-Header": "custom-value"
}
}
)
# Run team with extra headers for specific requests
team = await team_builder.build_team(agents)
result = await team_builder.run_team(
team,
messages,
extra_headers={"Request-ID": "123"}
)
The library includes built-in support for Model Context Protocol, allowing you to expose your agent teams as API endpoints with automatic tool generation from OpenAPI specifications.
from asktheapi_team_builder import MCPService, MCPConfig
# Configure MCP service
mcp_config = MCPConfig(
transport="sse", # Server-Sent Events transport
port=8000, # Port to run the MCP server
name="asktheapi_mcp" # Service name
)
# Initialize MCP service
mcp_service = MCPService(mcp_config)
# Start MCP server with OpenAPI spec
await mcp_service.start_from_spec(
url_spec="https://api.example.com/openapi.json",
headers={"Authorization": "Bearer your-token"}
)
The MCP service will:
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)# Clone the repository
git clone https://github.com/alexalbala/asktheapi-team-builder.git
cd asktheapi-team-builder
# Install dependencies
pip install -e ".[dev]"
# Run tests
pytest
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for AskTheApi Team Builder from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/asktheapi-team-builder)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.