Skip to content

Conversation

tonyxwz
Copy link

@tonyxwz tonyxwz commented Aug 10, 2025

This is an MCP server that can execute any AWS CLI command supported by the current user's installed aws cli.

This is more of a feature request than a PR. The implementation is far from prod ready, just a demo to show that what are possible.

Issue #, if available: No issues. Just an idea that I feel worthy of exploring by the aws cli devs. Currently there are too many AWS MCP servers in the awslabs/mcp repository, and to be honest, almost none of them are very useful.

I think the AWS CLI itself should be the place where AWS MCP server is implemented (at least the local version).

After all, the github repository description says:

Universal Command Line Interface for Amazon Web Services

Description of changes:

Just add one command

aws mcp-server start

or

aws mcp-server start --transport streamable-http

Result (testing with npx @modelcontextprotocol/inspector):

Screenshot 2025-08-10 at 17 26 29

You need to install the mcp python SDK to test this PR:

pip install mcp

Check your MCP client such as https://code.visualstudio.com/docs/copilot/chat/mcp-servers to add the server to your coding assistant.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This is an MCP server that can execute any AWS CLI command supported by
the current user's installed aws cli.
@tonyxwz tonyxwz marked this pull request as ready for review August 10, 2025 15:31
@tonyxwz tonyxwz changed the title Implement MCP Mcp server Implement MCP server Aug 10, 2025
@ashovlin
Copy link
Member

Thanks for kicking off this discussion @tonyxwz! I think it does make sense as a feature request if you want to create one in paralle to thisl, that might be more visible to the community for collecting feedback and 👍 s.

The closest one in awslabs/mcp is probably aws-api-mcp-server, which is built on top of the CLI:

Curious if you've tried that one?

@tonyxwz
Copy link
Author

tonyxwz commented Aug 29, 2025

that might be more visible to the community for collecting feedback and 👍 s.

@ashovlin Thanks for your response. Should I create a feature request issue instead?

I tried them, but I feel aws cli is a better place to expose arbitrary aws command knowledge to my LLM assistant because I do not want to instead another command line program for aws which relies on a different version of awscli (v1 instead of v2). All the v2 commands do not work with aws api mcp server, yet almost all the new knowledge of LLM is for v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants