You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert
OnStartups / agentai-mcp-server Public
2 stars
0 forks
Branches
Tags
Activity
Notifications
You must be signed in to change notification settings
main
Go to file
Code
| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------
History
-------
1 Commit
| | |
| .gitignore | | .gitignore | | |
| Dockerfile | | Dockerfile | | |
| README.md | | README.md | | |
| index.js | | index.js | | |
| package-lock.json | | package-lock.json | | |
| package.json | | package.json | | |
| yarn.lock | | yarn.lock | | |
| View all files | | |
An MCP server implementation that integrates with the Agent.ai API, providing web text extraction, web screenshots, and YouTube transcript capabilities through a dynamic function loading system.
The server dynamically loads tools from the Agent.ai API. The currently available tools include:
grab_web_text
url
(string, required): URL of the web page to extractmode
(string, optional): "scrape" for one page, "crawl" for up to 100 pagesgrab_web_screenshot
Capture visual screenshots of web pages
url
(string, required): URL of the web page to capturettl_for_screenshot
(integer, optional): Cache expiration time in secondsget_youtube_transcript
Fetch transcripts from YouTube videos
url
(string, required): URL of the YouTube videoand dozens of other tools. To see all available tools, visit https://docs.agent.ai/api-reference
.
To use this MCP server, you'll need an Agent.ai API token. Contact Agent.ai to obtain your token.
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"agentai": {
"command": "docker",
"args": [\
"run",\
"-i",\
"--rm",\
"-e",\
"API_TOKEN",\
"mcp/agentai"\
],
"env": {
"API_TOKEN": "YOUR_API_TOKEN_HERE"
}
}
}
}
{
"mcpServers": {
"agentai": {
"command": "npx",
"args": [\
"-y",\
"@agentai/mcp-server"\
],
"env": {
"API_TOKEN": "YOUR_API_TOKEN_HERE"
}
}
}
}
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: '{"url":"https://agent.ai","mode":"scrape"}'
};
fetch('https://api-lr.agent.ai/v1/action/grab_web_text', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: '{"url":"https://agent.ai","ttl_for_screenshot":86400}'
};
fetch('https://api-lr.agent.ai/v1/action/grab_web_screenshot', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: '{"url":"https://youtube.com/watch?v=example"}'
};
fetch('https://api-lr.agent.ai/v1/action/get_youtube_transcript', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Docker build:
docker build -t mcp/agentai:latest .
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
No description, website, or topics provided.
No releases published
No packages published
You can’t perform that action at this time.