1. Install the Meshagent package

pip install "meshagent[all]"

2. Sign Up and Authenticate

Follow the CLI guide at Meshagent CLI: Get Started to sign up and authenticate.

3. Start an MCP Server Agent in a Meshagent Room

meshagent service test --room=test --role=agent --image=meshagent/mcp-wikipedia-mcp:latest --env MESHAGENT_PORT=8001 --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" --name=mcp-wikipedia-mcp-service
  • This command will start a Meshagent Room named test with the Wikipedia MCP server accessible within the room.
  • Rooms will close if they go inactive.

4. Start a Chatbot Connected to the MCP Server Tools

meshagent chatbot join --room=test --agent-name=sample --name=sample --toolkit=mcp-wikipedia-mcp
  • Starts a chatbot in the same test room with access to the wikipedia-mcp toolkit.
  • Multiple toolkits can be loaded in a single room with the same agent.
  • A link to the room where you can interact with the agent and tools will be displayed in your terminal.

Tools Available

The Wikipedia MCP Server provides the following tools:

Tool NameShort Description
get_articleGet the full content of a Wikipedia article.
get_linksGet the links contained within a Wikipedia article.
get_related_topicsGet topics related to a Wikipedia article based on links and categories.
get_sectionsGet the sections of a Wikipedia article.
get_summaryGet a summary of a Wikipedia article.
search_wikipediaSearch Wikipedia for articles matching a query.

Tool Details

get_article

Get the full content of a Wikipedia article.

ParameterTypeDescription
titlestring

Get the links contained within a Wikipedia article.

ParameterTypeDescription
titlestring

Get topics related to a Wikipedia article based on links and categories.

ParameterTypeDescription
titlestring
limitintegeroptional

get_sections

Get the sections of a Wikipedia article.

ParameterTypeDescription
titlestring

get_summary

Get a summary of a Wikipedia article.

ParameterTypeDescription
titlestring

search_wikipedia

Search Wikipedia for articles matching a query.

ParameterTypeDescription
querystring
limitintegeroptional

Meshagent Resources