crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Agents can discover & use tools/resources hosted on Model Context Protocol (MCP) Server

Open ritzvik opened this issue 2 months ago • 0 comments

Feature Area

Agent capabilities

Is your feature request related to a an existing bug? Please link it here.

NA

Describe the solution you'd like

Anthropic's new Model Context Protocol is been touted as "a new standard for connecting AI assistants to the systems where data lives, including content repositories, business tools, and development environments".

Here are some resources to brush up on the same:

  • https://www.anthropic.com/news/model-context-protocol
  • https://github.com/modelcontextprotocol

MCP provides specifications for both clients & servers.

The MCP server can host 3 types of primitives:

  • Tools (synonymous with CrewAI/langchain/autogen tools)
  • Resources (tools, but with no side effects, like fetching data from somewhere)
  • Prompts

Anthropic has open sourced their python SDK for making server out of tools(python functions) easily.

Vision

  • CrewAI agents can take in MCP server address and port(apart from usual tools) when defining the agent.
  • The agent can discover tools/resources hosted within that MCP server
  • Use the tools as and when required(like with regular tools)

The Python-SDK also has a lightweight client implementation.

A number of applications have implemented MCP clients including the Claude Desktop Application. Here's the full list.

Describe alternatives you've considered

No response

Additional context

No response

Willingness to Contribute

Yes, I'd be happy to submit a pull request

ritzvik avatar Dec 28 '24 17:12 ritzvik